[pacman-dev] [PATCH] Show --print and --print-format options with -Rh, -Sh and -Uh only

Nagy Gabor ngaba at bibl.u-szeged.hu
Mon Mar 15 23:58:28 CET 2010


http://mailman.archlinux.org/pipermail/pacman-dev/2010-March/010519.html

Signed-off-by: Nagy Gabor <ngaba at bibl.u-szeged.hu>
---
 src/pacman/pacman.c |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 6778ea2..fdc53db 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -95,6 +95,9 @@ static void usage(int op, const char * const myname)
 			printf(_("  -s, --recursive      remove dependencies also (that won't break packages)\n"
 				 "                       (-ss includes explicitly installed dependencies too)\n"));
 			printf(_("  -u, --unneeded       remove unneeded packages (that won't break packages)\n"));
+			printf(_("      --print          only print the targets instead of performing the operation\n"));
+			printf(_("      --print-format <string>\n"
+			         "                       specify how the targets should be printed\n"));
 		} else if(op == PM_OP_UPGRADE) {
 			printf("%s:  %s {-U --upgrade} [%s] <%s>\n", str_usg, myname, str_opt, str_file);
 			printf("%s:\n", str_opt);
@@ -102,6 +105,9 @@ static void usage(int op, const char * const myname)
 			printf(_("      --asexplicit     install packages as explicitly installed\n"));
 			printf(_("  -d, --nodeps         skip dependency checks\n"));
 			printf(_("  -f, --force          force install, overwrite conflicting files\n"));
+			printf(_("      --print          only print the targets instead of performing the operation\n"));
+			printf(_("      --print-format <string>\n"
+			         "                       specify how the targets should be printed\n"));
 		} else if(op == PM_OP_QUERY) {
 			printf("%s:  %s {-Q --query} [%s] [%s]\n", str_usg, myname, str_opt, str_pkg);
 			printf("%s:\n", str_opt);
@@ -138,6 +144,9 @@ static void usage(int op, const char * const myname)
 			printf(_("      --ignore <pkg>   ignore a package upgrade (can be used more than once)\n"));
 			printf(_("      --ignoregroup <grp>\n"
 			         "                       ignore a group upgrade (can be used more than once)\n"));
+			printf(_("      --print          only print the targets instead of performing the operation\n"));
+			printf(_("      --print-format <string>\n"
+			         "                       specify how the targets should be printed\n"));
 			printf(_("  -q, --quiet          show less information for query and search\n"));
 		} else if (op == PM_OP_DATABASE) {
 			printf("%s:  %s {-D --database} <%s> <%s>\n", str_usg, myname, str_opt, str_pkg);
@@ -145,9 +154,6 @@ static void usage(int op, const char * const myname)
 			printf(_("      --asdeps         mark packages as non-explicitly installed\n"));
 			printf(_("      --asexplicit     mark packages as explicitly installed\n"));
 		}
-		printf(_("      --print          only print the targets instead of performing the operation\n"));
-		printf(_("      --print-format <string>\n"
-		         "                       specify how the targets should be printed\n"));
 		printf(_("      --config <path>  set an alternate configuration file\n"));
 		printf(_("      --logfile <path> set an alternate log file\n"));
 		printf(_("      --noconfirm      do not ask for any confirmation\n"));
-- 
1.7.0.2



More information about the pacman-dev mailing list