20 #define POPT_QUERYFORMAT -1000
21 #define POPT_WHATREQUIRES -1001
22 #define POPT_WHATPROVIDES -1002
23 #define POPT_QUERYBYNUMBER -1003
24 #define POPT_TRIGGEREDBY -1004
25 #define POPT_DUMP -1005
26 #define POPT_SPECFILE -1006
27 #define POPT_QUERYBYPKGID -1007
28 #define POPT_QUERYBYHDRID -1008
29 #define POPT_QUERYBYFILEID -1009
30 #define POPT_QUERYBYTID -1010
31 #define POPT_HDLIST -1011
32 #define POPT_FTSWALK -1012
35 #define POPT_TRUST -1037
36 #define POPT_WHATNEEDS -1038
37 #define POPT_SPECSRPM -1039
41 enum poptCallbackReason reason,
42 const struct poptOption * opt,
const char * arg,
111 { NULL,
'\0', POPT_ARG_CALLBACK | POPT_CBFLAG_INC_DATA,
114 {
"all",
'a', 0, 0,
'a',
115 N_(
"query/verify all packages"), NULL },
116 {
"checksig",
'K', POPT_ARGFLAG_DOC_HIDDEN, NULL,
'K',
117 N_(
"rpm checksig mode"), NULL },
118 {
"file",
'f', 0, 0,
'f',
119 N_(
"query/verify package(s) owning file"),
"FILE" },
120 {
"group",
'g', 0, 0,
'g',
121 N_(
"query/verify package(s) in group"),
"GROUP" },
122 {
"package",
'p', 0, 0,
'p',
123 N_(
"query/verify a package file"), NULL },
126 N_(
"query/verify package(s) from TOP file tree walk"),
"TOP" },
127 {
"hdlist",
'H', POPT_ARGFLAG_DOC_HIDDEN, 0,
POPT_HDLIST,
128 N_(
"query/verify package(s) from system HDLIST"),
"HDLIST" },
131 N_(
"query/verify package(s) with package identifier"),
"MD5" },
133 N_(
"query/verify package(s) with header identifier"),
"SHA1" },
135 N_(
"query/verify package(s) with file identifier"),
"MD5" },
137 {
"query",
'q', POPT_ARGFLAG_DOC_HIDDEN, NULL,
'q',
138 N_(
"rpm query mode"), NULL },
140 N_(
"query/verify a header instance"),
"HDRNUM" },
142 N_(
"query a spec file"),
N_(
"<spec>") },
143 {
"specsrpm",
'\0', POPT_ARGFLAG_DOC_HIDDEN, 0,
POPT_SPECSRPM,
144 N_(
"query source metadata from spec file parse"),
N_(
"<spec>") },
146 N_(
"query/verify package(s) from install transaction"),
"TID" },
148 N_(
"query the package(s) triggered by the package"),
"PACKAGE" },
149 {
"verify",
'V', POPT_ARGFLAG_DOC_HIDDEN, NULL,
'V',
150 N_(
"rpm verify mode"), NULL },
152 N_(
"query/verify the package(s) which require a dependency"),
"CAPABILITY" },
154 N_(
"query/verify the package(s) which require any contained provide"),
158 N_(
"query/verify the package(s) which provide a dependency"),
"CAPABILITY" },
161 N_(
"create transaction set"), NULL},
163 N_(
"do not order transaction set"), NULL},
165 N_(
"do not glob arguments"), NULL},
167 N_(
"do not process non-package files as manifests"), NULL},
169 N_(
"do not read headers"), NULL},
178 enum poptCallbackReason reason,
179 const struct poptOption * opt,
const char * arg,
200 int len = strlen(qf) + strlen(arg) + 1;
217 const char * infoCommand[] = {
"--info", NULL };
219 (void) poptStuffArgs(con, infoCommand);
264 long trust = (int) strtol(arg, &end, 0);
278 { NULL,
'\0', POPT_ARG_CALLBACK | POPT_CBFLAG_INC_DATA | POPT_CBFLAG_CONTINUE,
283 {
"configfiles",
'c', 0, 0,
'c',
284 N_(
"list all configuration files"), NULL },
285 {
"docfiles",
'd', 0, 0,
'd',
286 N_(
"list all documentation files"), NULL },
288 N_(
"dump basic file information"), NULL },
289 { NULL,
'i', POPT_ARGFLAG_DOC_HIDDEN, 0,
'i',
291 {
"list",
'l', 0, 0,
'l',
292 N_(
"list files in package"), NULL },
294 {
"aid",
'\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
296 N_(
"add suggested packages to transaction"), NULL },
299 {
"noconfig",
'\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
301 N_(
"skip %%config files"), NULL },
302 {
"nodoc",
'\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
304 N_(
"skip %%doc files"), NULL },
305 {
"noghost",
'\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
307 N_(
"skip %%ghost files"), NULL },
309 {
"nolicense",
'\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
311 N_(
"skip %%license files"), NULL },
312 {
"noreadme",
'\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
314 N_(
"skip %%readme files"), NULL },
317 {
"qf",
'\0', POPT_ARG_STRING | POPT_ARGFLAG_DOC_HIDDEN, 0,
320 N_(
"use the following query format"),
N_(
"QUERYFORMAT") },
321 {
"specedit",
'\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &
specedit, -1,
322 N_(
"substitute i18n sections into spec file"), NULL },
323 {
"state",
's', 0, 0,
's',
324 N_(
"display the states of the listed files"), NULL },
326 N_(
"specify target platform"),
N_(
"CPU-VENDOR-OS") },
335 { NULL,
'\0', POPT_ARG_CALLBACK | POPT_CBFLAG_INC_DATA | POPT_CBFLAG_CONTINUE,
341 {
"aid",
'\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
343 N_(
"add suggested packages to transaction"), NULL },
346 {
"noconfig",
'\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
348 N_(
"skip %%config files"), NULL },
349 {
"nodoc",
'\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
351 N_(
"skip %%doc files"), NULL },
357 N_(
"don't verify file digests"), NULL },
360 N_(
"don't verify file digests"), NULL },
362 N_(
"don't verify file digests"), NULL },
364 {
"nosize",
'\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
366 N_(
"don't verify size of files"), NULL },
367 {
"nolinkto",
'\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
369 N_(
"don't verify symlink path of files"), NULL },
370 {
"nouser",
'\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
372 N_(
"don't verify owner of files"), NULL },
373 {
"nogroup",
'\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
375 N_(
"don't verify group of files"), NULL },
376 {
"nomtime",
'\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
378 N_(
"don't verify modification time of files"), NULL },
379 {
"nomode",
'\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
381 N_(
"don't verify mode of files"), NULL },
382 {
"nordev",
'\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
384 N_(
"don't verify mode of files"), NULL },
387 N_(
"don't verify file security contexts"), NULL },
389 N_(
"don't verify files in package"), NULL},
392 N_(
"don't verify package dependencies"), NULL },
395 N_(
"don't verify package dependencies"), NULL },
400 N_(
"don't execute verify script(s)"), NULL },
402 {
"noscripts",
'\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
404 N_(
"don't execute verify script(s)"), NULL },
407 N_(
"don't execute verify script(s)"), NULL },
410 N_(
"don't execute verify script(s)"), NULL },
415 N_(
"don't verify package digest(s)"), NULL },
416 {
"nohdrchk",
'\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
418 N_(
"don't verify database header(s) when retrieved"), NULL },
419 {
"nosignature",
'\0', POPT_BIT_SET,
421 N_(
"don't verify package signature(s)"), NULL },
424 N_(
"don't verify package digest(s)"), NULL },
426 N_(
"don't verify database header(s) when retrieved"), NULL },
428 N_(
"don't verify package signature(s)"), NULL },
440 { NULL,
'\0', POPT_ARG_CALLBACK | POPT_CBFLAG_INC_DATA | POPT_CBFLAG_CONTINUE,
443 {
"addsign",
'\0', 0, NULL,
'A',
444 N_(
"sign package(s) (identical to --resign)"), NULL },
445 {
"checksig",
'K', 0, NULL,
'K',
446 N_(
"verify package signature(s)"), NULL },
447 {
"delsign",
'\0', 0, NULL,
'D',
448 N_(
"delete package signatures"), NULL },
449 {
"import",
'\0', 0, NULL,
'I',
450 N_(
"import an armored public key"), NULL },
451 {
"resign",
'\0', 0, NULL,
'R',
452 N_(
"sign package(s) (identical to --addsign)"), NULL },
454 N_(
"generate signature"), NULL },
456 {
"trust",
'\0', POPT_ARG_STRING|POPT_ARGFLAG_DOC_HIDDEN, 0,
POPT_TRUST,
457 N_(
"specify trust metric"),
"TRUST" },
458 {
"trusted",
'\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN,
460 N_(
"set ultimate trust when importing pubkey(s)"), NULL },
461 {
"untrusted",
'\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN,
463 N_(
"unset ultimate trust when importing pubkey(s)"), NULL },
466 N_(
"don't verify package digest(s)"), NULL },
467 {
"nohdrchk",
'\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
469 N_(
"don't verify database header(s) when retrieved"), NULL },
471 N_(
"don't verify package signature(s)"), NULL },