SOURCES: bash-completion-rpm-arch.patch (NEW) - output also archid...
glen
glen at pld-linux.org
Wed Jan 18 01:06:01 CET 2006
Author: glen Date: Wed Jan 18 00:06:01 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- output also archidecture when producing rpm package lists
---- Files affected:
SOURCES:
bash-completion-rpm-arch.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/bash-completion-rpm-arch.patch
diff -u /dev/null SOURCES/bash-completion-rpm-arch.patch:1.1
--- /dev/null Wed Jan 18 01:06:01 2006
+++ SOURCES/bash-completion-rpm-arch.patch Wed Jan 18 01:05:56 2006
@@ -0,0 +1,16 @@
+--- bash_completion/bash_completion 2006-01-18 02:02:52.000000000 +0200
++++ /tmp/bash_completion 2006-01-18 02:02:01.000000000 +0200
+@@ -1731,11 +1731,10 @@
+ if [ -r /var/cache/rpmpkgs.txt -a /var/cache/rpmpkgs.txt -nt /var/lib/rpm/Packages ]; then
+ # using RHL 7.2 or later - this is quicker than querying the DB
+ COMPREPLY=( $( sed -ne \
+- 's|^\('$cur'.*\)-[0-9a-zA-Z._]\+-[0-9a-z.@]\+.*\.rpm$|\1|p' \
++ 's|^\('$cur'.*-[0-9a-zA-Z._]\+-[0-9a-z.@]\+.*\)\.rpm$|\1|p' \
+ /var/cache/rpmpkgs.txt ) )
+ else
+- COMPREPLY=( $( rpm -qa $nodig $nosig | sed -ne \
+- 's|^\('$cur'.*\)-[0-9a-zA-Z._]\+-[0-9a-z.@]\+$|\1|p' ) )
++ COMPREPLY=( $( rpm -qa $nodig $nosig -qf '%{name}-%{version}-%{release}.%{arch}\n' "$cur*" ) )
+ fi
+ }
+
================================================================
More information about the pld-cvs-commit
mailing list