help text of rpm applet

Wade Berrier wberrier at gmail.com
Mon Aug 25 15:34:33 UTC 2008


On Thu, 2008-08-21 at 22:12 +0200, Bernhard Reutner-Fischer wrote:
> Hi,
> 
> The help-text of rpm sounds like it's inaccurate.
> 
> #define rpm_full_usage "\n\n" \
>        "Manipulate RPM packages\n" \
>      "\nOptions:" \
>      "\n        -i      Install package" \
>      "\n        -q      Query package" \
>      "\n        -p      Query uninstalled package" \
>      "\n        -i      Show information" \
>      "\n        -l      List contents" \
>      "\n        -d      List documents" \
>      "\n        -c      List config files" \
> 
> 
> perhaps this should rather be something like
> 
> #define rpm_full_usage "\n\n" \
>        "Manipulate RPM packages\n" \
>      "\nOptions:" \
>      "\n        -i      Install package" \
>      "\n        -p      Query uninstalled package" \
>      "\n        -q      Query package" \
>      "\n	Query flags:" \
>      "\n        i       information" \
>      "\n        l       contents" \
>      "\n        d       documents" \
>      "\n        c       config files" \
> 
> Perhaps somebody with an rpm lying around can check if that would be
> accurate?

This is correct, although when using '-p' you must still use '-q'.
('-p' only denotes that the query should file from an rpm file instead
of the rpm database).  So maybe this makes sense:

#define rpm_full_usage "\n\n" \
       "Manipulate RPM packages\n" \
     "\nOptions:" \
     "\n        -i      Install package" \
     "\n        -q      Query package" \
     "\n        Query flags:" \
     "\n        i       information" \
     "\n        l       contents" \
     "\n        d       documents" \
     "\n        c       config files" \
     "\n        p file  query rpm file" \

Hope that helps,

Wade




More information about the busybox mailing list