On Monday 02 July 2012 17:37:16 Axel Beckert wrote:
> Hi George!
> 
> George Danchev wrote:
> > Attached is a tiny tool which I use to find out enhacements of a
> > given package(s), by default all installed packages.
> 
> Neat!
> 
> The only thing, I'd change is that it should only show non-installed
> enhancements by default IMHO.
> 
>               Regards, Axel


Makes sense. Reworked and attached:

# ./check-enhancements -h 

check-enhancements 0.1 - show enhancement(s) packages of a given
package or a given set of packages given on the cmdline.
If given no packages, process all installed packages.
 
Options:
 Program options start with dash or double dash,
 otherwise it is interpreted as package name.

 -ie|--ie|-installed-enhancements|--installed-enhancements
 -h|-help|--help
 -verbose|--verbose

Usage:
# check enhancement(s) of all installed packages
 check-enhancements
# check enhancement(s) of selected package(s)
 check-enhancements pkg1 pkgN


# ./check-enhancements apt

# ./check-enhancements apt -ie
apt: netselect-apt:       Installed: 0.3.ds1-25   Candidate: 0.3.ds1-25

# ./check-enhancements apt --ie --verbose
Package <<apt>> could be Enhanced by:
apt: netselect-apt:       Installed: 0.3.ds1-25   Candidate: 0.3.ds1-25

# ./check-enhancements git --ie --verbose
Package <<git>> could be Enhanced by:
git: git-ftp:     Installed: (none)       Candidate: 0.7.4+git20120528-1
git: git2cl:      Installed: (none)       Candidate: 2.0+git200808271242-1

# ./check-enhancements git --verbose
Package <<git>> could be Enhanced by:
git: git-ftp:     Installed: (none)       Candidate: 0.7.4+git20120528-1
git: git2cl:      Installed: (none)       Candidate: 2.0+git200808271242-1

# ./check-enhancements bzr          
bzr: bzr-cvsps-import:    Installed: (none)       Candidate: 0.0.1~bzr71-1
bzr: bzr-explorer:        Installed: (none)       Candidate: 1.3.0~bzr556-1
bzr: bzr-fastimport:      Installed: (none)       Candidate: 0.13.0-2
bzr: bzr-grep:    Installed: (none)       Candidate: 0.4.0+bzr147-1
bzr: bzr-gtk:     Installed: (none)       Candidate: 0.103.0+bzr792-3
bzr: bzr-loom:    Installed: (none)       Candidate: 2.2.0-2
bzr: bzr-pipeline:        Installed: (none)       Candidate: 1.4-3
bzr: bzr-rewrite:         Installed: (none)       Candidate: 0.6.3+bzr256-1
bzr: bzr-search:          Installed: (none)       Candidate: 1.7.0~bzr94-1
bzr: bzr-stats:   Installed: (none)       Candidate: 0.1.0+bzr48-2
bzr: bzr-upload:          Installed: (none)       Candidate: 1.1.0-2
bzr: bzr-xmloutput:       Installed: (none)       Candidate: 0.8.8+bzr162-3
bzr: loggerhead:          Installed: (none)       Candidate: 1.19~bzr461-1
bzr: qbzr:        Installed: (none)       Candidate: 0.22.2-1
bzr: wikkid:      Installed: (none)       Candidate: 0.1+bzr69-1

# ./check-enhancements bzr -ie --verbose
Package <<bzr>> could be Enhanced by:
bzr: bzr-cvsps-import:    Installed: (none)       Candidate: 0.0.1~bzr71-1
bzr: bzr-email:   Installed: 0.0.1~bzr57-2        Candidate: 0.0.1~bzr57-2
bzr: bzr-explorer:        Installed: (none)       Candidate: 1.3.0~bzr556-1
bzr: bzr-fastimport:      Installed: (none)       Candidate: 0.13.0-2
bzr: bzr-grep:    Installed: (none)       Candidate: 0.4.0+bzr147-1
bzr: bzr-gtk:     Installed: (none)       Candidate: 0.103.0+bzr792-3
bzr: bzr-loom:    Installed: (none)       Candidate: 2.2.0-2
bzr: bzr-pipeline:        Installed: (none)       Candidate: 1.4-3
bzr: bzr-rewrite:         Installed: (none)       Candidate: 0.6.3+bzr256-1
bzr: bzr-search:          Installed: (none)       Candidate: 1.7.0~bzr94-1
bzr: bzr-stats:   Installed: (none)       Candidate: 0.1.0+bzr48-2
bzr: bzr-upload:          Installed: (none)       Candidate: 1.1.0-2
bzr: bzr-xmloutput:       Installed: (none)       Candidate: 0.8.8+bzr162-3
bzr: loggerhead:          Installed: (none)       Candidate: 1.19~bzr461-1
bzr: qbzr:        Installed: (none)       Candidate: 0.22.2-1
bzr: wikkid:      Installed: (none)       Candidate: 0.1+bzr69-1

-- 
pub 4096R/0E4BD0AB <people.fccf.net/danchev/key pgp.mit.edu>

Attachment: check-enhancements
Description: application/shellscript

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to