[Bash-completion-devel] [bash-completion-Bugs][312021] [PATCH] Use rpmqpack instead of "rpm -qa" in SUSE
bash-completion-bugs at alioth.debian.org
bash-completion-bugs at alioth.debian.org
Tue Oct 20 19:50:31 UTC 2009
Bugs item #312021, was changed at 2009-10-20 15:16 by Ville Skyttä
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312021&group_id=100114
>Status: Closed
Priority: 3
Submitted By: Marco Poletti (polettimarco-guest)
Assigned to: Ville Skyttä (scop-guest)
>Summary: [PATCH] Use rpmqpack instead of "rpm -qa" in SUSE
Distribution: None
Originally reported in: None
Milestone: 1.1
>Status: Fix Committed
Original bug number:
Initial Comment:
In SUSE, we have rpmqpack that does "rpm -qa", but much faster.
I attach a patch that makes bash-completion 1.1 use rpmqpack if it is available.
----------------------------------------------------------------------
>Comment By: Ville Skyttä (scop-guest)
Date: 2009-10-20 22:50
Message:
Good, we have some consumers of _rpm_installed_packages that require plain package names. Applied with minor changes: http://git.debian.org/?p=bash-completion/bash-completion.git;a=commitdiff;h=474896f2c8093e5211b5530a59b0e6c1fc4f6f84
We'll probably be doing versions/archs using query formats when it's time.
----------------------------------------------------------------------
Comment By: Marco Poletti (polettimarco-guest)
Date: 2009-10-20 22:20
Message:
Just package names.
Output of "rpmqpack | head -n 1" on my machine:
yast2-packager-webpin
If you need more informations, you can use "rpmquery --all | fgrep . " that gives results like
chmlib-0.40-2.5.x86_64
Here «chmlib» is the package name, «0.40» is the version, «2.5» is the version of the build and «x86_64» is the arch.
----------------------------------------------------------------------
Comment By: Ville Skyttä (scop-guest)
Date: 2009-10-20 22:12
Message:
Just to confirm, rpmqpack returns package names only, not e.g. name.arch or any package version information?
----------------------------------------------------------------------
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312021&group_id=100114
More information about the Bash-completion-devel
mailing list