[pacman-dev] [patch] Very small bug(?)fix
Nagy Gabor
ngaba at petra.hos.u-szeged.hu
Sat Mar 31 03:38:52 EDT 2007
Hi!
I wanted to search packages with "-Ss -hu" and I found that -hu is
treated as a new switch. So here is my little patch to set that
--search requires an argument. (Anyway, I could search with .*-hu :-)
--------------------
--- pacman-lib/src/pacman/pacman.c.old 2007-03-31 09:26:09.000000000 +0200
+++ pacman-lib/src/pacman/pacman.c 2007-03-31 09:33:39.000000000 +0200
@@ -247,7 +247,7 @@
{"print-uris", no_argument, 0, 'p'},
{"root", required_argument, 0, 'r'},
{"recursive", no_argument, 0, 's'},
- {"search", no_argument, 0, 's'},
+ {"search", required_argument, 0, 's'},
{"upgrades", no_argument, 0, 'u'},
{"sysupgrade", no_argument, 0, 'u'},
{"verbose", no_argument, 0, 'v'},
@@ -266,7 +266,7 @@
struct stat st;
unsigned short logmask;
- while((opt = getopt_long(argc, argv, "ARUFQSTr:b:vkhscVfmnoldepiuwyg", opts, &option_index))) {
+ while((opt = getopt_long(argc, argv, "ARUFQSTr:b:vkhs:cVfmnoldepiuwyg", opts, &option_index))) {
if(opt < 0) {
break;
}
-----------------------
Bye, Nagy Gabor
More information about the pacman-dev
mailing list