diff options
author | Aaron Griffin <aaron@archlinux.org> | 2006-10-15 21:34:52 +0200 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-10-15 21:34:52 +0200 |
commit | 3f27542156125118800235c5ac1bac125fd7752c (patch) | |
tree | e0ba3d5fd23be2c7ad5da14234622b032ab79191 /src/pacman/remove.c | |
parent | d37ad048732fbcef38aec001993553896dbe4198 (diff) | |
download | pacman-3f27542156125118800235c5ac1bac125fd7752c.tar.gz pacman-3f27542156125118800235c5ac1bac125fd7752c.tar.xz |
Merged frugalware changes. Added a few other minor things too, but there's alot
to list. The diff should show you 8)
Diffstat (limited to 'src/pacman/remove.c')
-rw-r--r-- | src/pacman/remove.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/pacman/remove.c b/src/pacman/remove.c index 2092ccf0..475df393 100644 --- a/src/pacman/remove.c +++ b/src/pacman/remove.c @@ -77,24 +77,17 @@ int pacman_remove(list_t *targets) /* Step 1: create a new transaction */ - if(alpm_trans_init(PM_TRANS_TYPE_REMOVE, config->flags, cb_trans_evt, cb_trans_conv) == -1) { + if(alpm_trans_init(PM_TRANS_TYPE_REMOVE, config->flags, cb_trans_evt, cb_trans_conv, cb_trans_progress) == -1) { ERR(NL, _("failed to init transaction (%s)\n"), alpm_strerror(pm_errno)); if(pm_errno == PM_ERR_HANDLE_LOCK) { MSG(NL, _(" if you're sure a package manager is not already running,\n" - " you can remove %s\n"), PM_LOCK); + " you can remove %s%s\n"), config->root, PM_LOCK); } FREELIST(finaltargs); return(1); } /* and add targets to it */ for(i = finaltargs; i; i = i->next) { - /* check if the package is in the HoldPkg list. If so, ask - * confirmation first */ - if(list_is_strin(i->data, config->holdpkg)) { - if(!yesno(_(":: %s is designated as a HoldPkg. Remove anyway? [Y/n] "), i->data)) { - return(1); - } - } if(alpm_trans_addtarget(i->data) == -1) { ERR(NL, _("failed to add target '%s' (%s)\n"), (char *)i->data, alpm_strerror(pm_errno)); retval = 1; @@ -155,7 +148,6 @@ int pacman_remove(list_t *targets) */ cleanup: FREELIST(finaltargs); - if(alpm_trans_release() == -1) { ERR(NL, _("failed to release transaction (%s)\n"), alpm_strerror(pm_errno)); retval = 1; |