diff options
author | Dan McGee <dan@archlinux.org> | 2007-03-06 22:08:12 +0000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-03-06 22:08:12 +0000 |
commit | 631a71f11af90db6e43c560fd552041348b293be (patch) | |
tree | 437818684841b028e89d2fc2967ccb80eb8fac5f /contrib | |
parent | 48181e9a84c84b698b7fdce859889d6c24849da3 (diff) | |
download | pacman-631a71f11af90db6e43c560fd552041348b293be.tar.xz |
* Oops, that last commit had some debug stuff in it. Removed it and added
--help and --version command line flags to contrib/pacsearch.
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/pacsearch | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/contrib/pacsearch b/contrib/pacsearch index 63a74abd..6eed254d 100755 --- a/contrib/pacsearch +++ b/contrib/pacsearch @@ -50,18 +50,15 @@ if [ -z "$1" -o "${1:0:1}" = "-" ]; then exit 1 fi -echo "debug 1" # Make two temp files and send output of commands to these files querydump=$(mktemp) pacman -Qs $1 > $querydump syncdump=$(mktemp) pacman -Ss $1 > $syncdump -echo "debug 2" # Strip descriptions and 'local/' from -Qs query instpkg=$(mktemp) egrep '^[^ ]' $querydump | sed -e 's@^local/@@' > $instpkg -echo "debug 3" # Add pkgs not in sync db, mark pkgs that are installed cat $instpkg | while read -r pkg; do @@ -73,7 +70,6 @@ cat $instpkg | while read -r pkg; do sed -i "s@^\(.\+/$pkg\)@\***\1@" $syncdump done -echo "debug 4" # Print colorized package list and descriptions to screen echo -e "$(sed -r \ -e "s@current/.*@$CLR1&$BASE@" \ @@ -88,7 +84,6 @@ echo -e "$(sed -r \ < $syncdump )" echo -en "\e[0m" -echo "debug 5" rm $querydump rm $syncdump rm $instpkg |