+2008-05-24 Guillem Jover <guillem@debian.org>
+
+ * dpkg-deb/build.c (do_build): Move argument name into a parameter to
+ coalesce similar strings for translation.
+ * dpkg-split/info.c (do_info): Likewise.
+ * dpkg-split/join.c (do_join): Likewise.
+ * dpkg-split/queue.c (do_queue): Likewise.
+ * src/enquiry.c (audit, unpackchk, assertversion, predeppackage)
+ (printarch): Likewise.
+ * src/select.c (setselections, clearselections): Likewise.
+
2008-05-24 Guillem Jover <guillem@debian.org>
* dpkg-deb/main.c: Include <dpkg-priv.h>.
struct _finfo *symlist_end = NULL;
/* Decode our arguments */
- directory= *argv++; if (!directory) badusage(_("--build needs a directory argument"));
+ directory = *argv++;
+ if (!directory)
+ badusage(_("--%s needs a <directory> argument"), cipaction->olong);
/* template for our tempfiles */
if ((envbuf= getenv("TMPDIR")) == NULL)
envbuf= P_tmpdir;
struct partinfo *pi, ps;
FILE *part;
- if (!*argv) badusage(_("--info requires one or more part file arguments"));
+ if (!*argv)
+ badusage(_("--%s requires one or more part file arguments"),
+ cipaction->olong);
while ((thisarg= *argv++)) {
part= fopen(thisarg,"r");
unsigned int i;
assert(!queue);
- if (!*argv) badusage(_("--join requires one or more part file arguments"));
+ if (!*argv)
+ badusage(_("--%s requires one or more part file arguments"),
+ cipaction->olong);
while ((thisarg= *argv++)) {
pq= nfmalloc(sizeof(struct partqueue));
unsigned long bytes;
unsigned int i;
- if (*argv) badusage(_("--listq does not take any arguments"));
+ if (*argv)
+ badusage(_("--%s takes no arguments"), cipaction->olong);
scandepot();
head= N_("Junk files left around in the depot directory:\n");
const struct badstatinfo *bsi;
int head;
- if (*argv) badusage(_("--audit does not take any arguments"));
+ if (*argv)
+ badusage(_("--%s takes no arguments"), cipaction->olong);
modstatdb_init(admindir,msdbrw_readonly);
char buf[20];
int width;
- if (*argv) badusage(_("--yet-to-unpack does not take any arguments"));
+ if (*argv)
+ badusage(_("--%s takes no arguments"), cipaction->olong);
modstatdb_init(admindir,msdbrw_readonly|msdbrw_noavail);
const char *reqversion) {
struct pkginfo *pkg;
- if (*argv) badusage(_("--assert-* does not take any arguments"));
+ if (*argv)
+ badusage(_("--%s takes no arguments"), cipaction->olong);
modstatdb_init(admindir,msdbrw_readonly|msdbrw_noavail);
if (verrev_buf->epoch == ~0UL) {
struct dependency *dep;
struct deppossi *possi, *provider;
- if (*argv) badusage(_("--predep-package does not take any argument"));
+ if (*argv)
+ badusage(_("--%s takes no arguments"), cipaction->olong);
modstatdb_init(admindir,msdbrw_readonly);
clear_istobes(); /* We use clientdata->istobe to detect loops */
}
void printarch(const char *const *argv) {
- if (*argv) badusage(_("--print-architecture does not take any argument"));
+ if (*argv)
+ badusage(_("--%s takes no arguments"), cipaction->olong);
if (printf("%s\n",architecture) == EOF) werr("stdout");
if (fflush(stdout)) werr("stdout");
struct varbuf namevb;
struct varbuf selvb;
- if (*argv) badusage(_("--set-selections does not take any argument"));
+ if (*argv)
+ badusage(_("--%s takes no arguments"), cipaction->olong);
modstatdb_init(admindir,msdbrw_write);
struct pkginfo *pkg;
if (*argv)
- badusage(_("--clear-selections does not take any argument"));
+ badusage(_("--%s takes no arguments"), cipaction->olong);
modstatdb_init(admindir, msdbrw_write);