diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-04-08 19:21:28 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-04-08 19:21:28 +0000 |
commit | 761b21d8ae258981c5537fdcb1ea0b9ac135be0d (patch) | |
tree | 1e2cdc3618be53dfbdfe5cd810046433abe8a5be /src/pacman | |
parent | 2decade81f33e90535c512dc6aa82f773834e273 (diff) |
- small bugfixes
- removed 2 debug messages
Diffstat (limited to 'src/pacman')
-rw-r--r-- | src/pacman/sync.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 71bec408..7e9b92d5 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -481,13 +481,11 @@ int pacman_sync(list_t *targets) switch((int)alpm_sync_getinfo(sync, PM_SYNC_TYPE)) { case PM_SYNC_TYPE_REPLACE: - MSG(NL, "Replace %s by '%s-%s'\n", lpkgname, spkgname, spkgver); if(yesno(":: Replace %s with %s from \"%s\"? [Y/n] ", lpkgname, spkgname, NULL/*dbs->db->treename*/)) { } break; case PM_SYNC_TYPE_UPGRADE: - MSG(NL, "Upgrade %s (%s => %s)\n", lpkgname, lpkgver, spkgver); targets = list_add(targets, strdup(spkgname)); break; default: @@ -504,7 +502,7 @@ int pacman_sync(list_t *targets) char *targ = i->data; if(alpm_trans_addtarget(targ) == -1) { if(pm_errno == PM_ERR_PKG_NOT_FOUND) { - PM_GRP *grp; + PM_GRP *grp = NULL; list_t *j; /* target not found: check if it's a group */ for(j = pmc_syncs; j && !grp; j = j->next) { @@ -513,10 +511,8 @@ int pacman_sync(list_t *targets) if(grp) { PM_LIST *k, *pkgs; MSG(NL, ":: group %s:\n", targ); - pkgs = alpm_grp_getinfo(grp, PM_GRP_PKGNAMES); PM_LIST_display(" ", pkgs); - if(yesno(":: Install whole content? [Y/n] ")) { for(k = alpm_list_first(pkgs); k; k = alpm_list_next(k)) { targets = list_add(targets, strdup(alpm_list_getdata(k))); @@ -536,7 +532,6 @@ int pacman_sync(list_t *targets) retval = 1; goto cleanup; } - continue; } else { ERR(NL, "failed to add target '%s': %s\n", (char *)i->data, alpm_strerror(pm_errno)); retval = 1; |