]> git.pld-linux.org Git - packages/bash-completion.git/commitdiff
- output also archidecture when producing rpm package lists
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 18 Jan 2006 00:05:56 +0000 (00:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bash-completion-rpm-arch.patch -> 1.1

bash-completion-rpm-arch.patch [new file with mode: 0644]

diff --git a/bash-completion-rpm-arch.patch b/bash-completion-rpm-arch.patch
new file mode 100644 (file)
index 0000000..c2ef0ef
--- /dev/null
@@ -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
+ }
This page took 0.076311 seconds and 4 git commands to generate.