From 4004bf9caf60231e9ad008f36325412bd20a611c Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 6 Apr 2008 19:58:10 -0500 Subject: Remove libdownload reference from pacman frontend Signed-off-by: Dan McGee --- src/pacman/sync.c | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 5c627393..c074746f 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -29,9 +29,6 @@ #include #include -#include /* downloadLastErrString */ -/* TODO remove above download.h inclusion once we abstract more, and also - * remove it from Makefile.am on the pacman side */ /* pacman */ #include "pacman.h" @@ -274,20 +271,8 @@ static int sync_synctree(int level, alpm_list_t *syncs) ret = alpm_db_update((level < 2 ? 0 : 1), db); if(ret < 0) { - if(pm_errno == PM_ERR_DB_SYNC) { - /* use libdownload error */ - /* TODO breaking abstraction barrier here? - * pacman -> libalpm -> libdownload - * - * Yes. This will be here until we add a nice pacman "pm_errstr" or - * something, OR add all libdownload error codes into the pm_error enum - */ - fprintf(stderr, _("error: failed to synchronize %s: %s\n"), - alpm_db_get_name(db), downloadLastErrString); - } else { - fprintf(stderr, _("error: failed to update %s (%s)\n"), - alpm_db_get_name(db), alpm_strerrorlast()); - } + fprintf(stderr, _("error: failed to update %s (%s)\n"), + alpm_db_get_name(db), alpm_strerrorlast()); } else if(ret == 1) { printf(_(" %s is up to date\n"), alpm_db_get_name(db)); success++; -- cgit v1.2.3-70-g09d2