[Bash-completion-devel] Bug#666060: bash-completion: lintian completion updates and suggestions

Niels Thykier niels at thykier.net
Wed Mar 28 10:59:38 UTC 2012


Package: bash-completion
Version: 1:1.99-3
Severity: minor
Tags: upstream


Hi,

Here is an update for Lintian (and lintian-info).

New cmd line arguments:

 --packages-from-file

   - Lintian only (under "package select options")
   - Accepts a filename or "-" (for stdin).
   - Not to be confused with --packages-file (see below).

 --profile <PROFILE>

   - Both lintian and lintian-info support this option, but it is not
     listed in the completion.
   - PROFILE be a relative partial file name, such that one of these
     files exists:
     * ~/.lintian/profiles/<PROFILE>.profile
     * /etc/lintian/profiles/<PROFILE>.profile
     * /usr/share/lintian/profiles/<PROFILE>.profile

Deprecated options (lintian only):

All of these options do nothing (except possible print a deprecation
warning) in current versions of Lintian.  There is no reason to use
any of them and therefore, probably, no reason to complete them
either:

  -m, --md5sums, --checksums

  --arch

  --area

  --archivedir

  --dist

  --section

This option is also deprecated, but Lintian still reacts to it (beyond
a deprecation warning):

  --packages-file

    - Not to be confused with --packages-from-file.

Completion suggestions for existing options (Lintian only):

 -L <LEVEL>, --display-level <LEVEL>

   - This is a difficult option to do completion for, but I suspect
     the following work rather well and be reasonable.
     * Strip s/^[-=<>]*// from <LEVEL>
     * If a / is present in <LEVEL>, complete only "C" on its right
       hand side
      - optionally complete "S" on its left hand side, but ... mah.
     * Otherwise complete <LEVEL> as either "S" or "C".

     Where C is one of "certain", "possible" and "wild-guess". "S"
     is one of "serious", "important", "normal", "minor", "wishlist"
     and "pedantic".

     (Full specification is: -L [+|-|=][>=|>|<|<=][S|C|S/C])

~Niels





More information about the Bash-completion-devel mailing list