summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-04-07 02:58:10 +0200
committerDan McGee <dan@archlinux.org>2008-04-07 03:02:39 +0200
commit4004bf9caf60231e9ad008f36325412bd20a611c (patch)
tree1c26a61f147117bc0ebe9b82a5689377cf2ca7d5 /src
parent404e0a0e10c1fbf9732f32a8c4bd466b026c34b1 (diff)
downloadpacman-4004bf9caf60231e9ad008f36325412bd20a611c.tar.gz
pacman-4004bf9caf60231e9ad008f36325412bd20a611c.tar.xz
Remove libdownload reference from pacman frontend
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/sync.c19
1 files 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 <alpm.h>
#include <alpm_list.h>
-#include <download.h> /* 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++;