summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-02-12 00:50:34 +0100
committerDan McGee <dan@archlinux.org>2012-02-13 17:06:13 +0100
commit991be2867259ee58d43a5005eec466ef2b546af5 (patch)
tree4c54f6945c75b692e33a433f0924aedec4a0e301 /src
parente530993392dc2ac54e566a45df6c974aa68aaa23 (diff)
downloadpacman-991be2867259ee58d43a5005eec466ef2b546af5.tar.gz
pacman-991be2867259ee58d43a5005eec466ef2b546af5.tar.xz
Do not check for ALPM_ERR_PKG_INVALID_ARCH on remove operation
alpm_trans_prepare can not return ALPM_ERR_PKG_INVALID_ARCH on a remove operation so there is no point in checking for it. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/remove.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/pacman/remove.c b/src/pacman/remove.c
index 96bb5373..52d2c7ac 100644
--- a/src/pacman/remove.c
+++ b/src/pacman/remove.c
@@ -115,12 +115,6 @@ int pacman_remove(alpm_list_t *targets)
pm_printf(ALPM_LOG_ERROR, _("failed to prepare transaction (%s)\n"),
alpm_strerror(err));
switch(err) {
- case ALPM_ERR_PKG_INVALID_ARCH:
- for(i = data; i; i = alpm_list_next(i)) {
- const char *pkg = i->data;
- printf(_(":: package %s does not have a valid architecture\n"), pkg);
- }
- break;
case ALPM_ERR_UNSATISFIED_DEPS:
for(i = data; i; i = alpm_list_next(i)) {
alpm_depmissing_t *miss = i->data;