summaryrefslogtreecommitdiffstats
path: root/src/pacman/pacman.c
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-02-04 02:36:45 +0100
committerAaron Griffin <aaron@archlinux.org>2007-02-04 02:36:45 +0100
commite3c7e92f1090204ba945c063b7aba3b3b1d8095b (patch)
tree08d49f36264059a878c7c40c80d99ec5bbcdcdc0 /src/pacman/pacman.c
parentd18259b532a09de8025881532bc9ef6152a31891 (diff)
downloadpacman-e3c7e92f1090204ba945c063b7aba3b3b1d8095b.tar.gz
pacman-e3c7e92f1090204ba945c063b7aba3b3b1d8095b.tar.xz
* unified the progress bars (fill_progress function)
* fixed progress output (needs an fflush to move cursor properly) * broke display_targets function out, to display a list of syncpkgs in preparation for a -Qu option * added get_update_time function to deal with progress functions that shouldn't update too fast due to output redraw speeds
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r--src/pacman/pacman.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 7f6f4192..c473227c 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -130,6 +130,7 @@ static void usage(int op, char *myname)
printf(_(" -o, --owns <file> query the package that owns <file>\n"));
printf(_(" -p, --file query the package file [package] instead of the database\n"));
printf(_(" -s, --search search locally-installed packages for matching strings\n"));
+ printf(_(" -u, --upgrades list all packages that can be upgraded\n"));
} else if(op == PM_OP_SYNC) {
printf(_("usage: %s {-S --sync} [options] [package]\n"), myname);
printf(_("options:\n"));
@@ -369,7 +370,10 @@ static int parseargs(int argc, char *argv[])
config->op_q_search = 1;
config->flags |= PM_TRANS_FLAG_RECURSE;
break;
- case 'u': config->op_s_upgrade = 1; break;
+ case 'u':
+ config->op_s_upgrade = 1;
+ /* TODO config->op_q_upgrade = 1; */
+ break;
case 'v': (config->verbose)++; break;
case 'w':
config->op_s_downloadonly = 1;