index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Xavier Chantry <shiningxc@gmail.com> | 2009-07-19 11:15:11 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-03-14 18:44:40 -0500 |
commit | d39b1dbe627af218e49be6424857089a5888903b (patch) | |
tree | 9225a360217ede5c5817fa41fb182454008dce6e /src/pacman/upgrade.c | |
parent | 67700b926a1eff745272975e7b089b80bf72cc30 (diff) |
-rw-r--r-- | src/pacman/upgrade.c | 8 |
diff --git a/src/pacman/upgrade.c b/src/pacman/upgrade.c index ddb47964..5e4234b1 100644 --- a/src/pacman/upgrade.c +++ b/src/pacman/upgrade.c @@ -69,7 +69,6 @@ int pacman_upgrade(alpm_list_t *targets) } /* add targets to the created transaction */ - printf(_("loading package data...\n")); for(i = targets; i; i = alpm_list_next(i)) { char *targ = alpm_list_getdata(i); if(alpm_add_target(targ) == -1) { @@ -129,6 +128,13 @@ int pacman_upgrade(alpm_list_t *targets) } /* Step 3: perform the installation */ + + if(config->print) { + print_packages(alpm_trans_get_add()); + trans_release(); + return(0); + } + /* print targets and ask user confirmation */ alpm_list_t *packages = alpm_trans_get_add(); if(packages == NULL) { /* we are done */ |