diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-03-22 20:14:49 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-03-22 20:14:49 +0000 |
commit | 8179f7cbaa62d4dccf85683b78206d9751d513d7 (patch) | |
tree | d438461b9c396d06e1d4f9abb34fb37dc2664d28 /src | |
parent | 621e241279c37f00775f5e06f15f6928b969cdc7 (diff) |
- added db_setlastupdate to db.c
- moved db_update from db.c to alpm.c
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/sync.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c index e7aeb06e..6931cf4c 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -174,7 +174,6 @@ static int sync_synctree(list_t *syncs) sync_t *sync = (sync_t *)i->data; /* get the lastupdate time */ - snprintf(path, PATH_MAX, "%s/%s", path, sync->treename); if(alpm_db_getlastupdate(sync->db, lastupdate) == -1) { vprint("failed to get lastupdate time for %s (no big deal)\n", sync->treename); } @@ -197,13 +196,12 @@ static int sync_synctree(list_t *syncs) } else { snprintf(path, PATH_MAX, "%s%s/%s"PM_EXT_DB, root, dbpath, sync->treename); if(alpm_db_update(sync->db, path, newmtime) == -1) { - fprintf(stderr, "error: failed to set database timestamp (%s)\n", alpm_strerror(pm_errno)); + fprintf(stderr, "error: failed to synchronize %s (%s)\n", sync->treename, alpm_strerror(pm_errno)); success--; } /* remove the .tar.gz */ unlink(path); } - } return(success); |