Fix __fish_print_packages for rpm

This commit is contained in:
Max Gonzih 2014-01-11 15:33:07 +03:00 committed by David Adam
parent 75b02e1d27
commit 71f6986dd6

View file

@ -67,7 +67,7 @@ function __fish_print_packages
end end
# Remove package version information from output and pipe into cache file # Remove package version information from output and pipe into cache file
rpm -qa >$cache_file |sed -e 's/-[^-]*-[^-]*$//' | sed -e 's/$/'\t$package'/' & rpm -qa | sed -e 's/-[^-]*-[^-]*$//' | sed -e 's/$/'\t$package'/' >$cache_file &
end end
# This completes the package name from the portage tree. # This completes the package name from the portage tree.