outputs cleanup

This commit is contained in:
Aurelien Foret 2005-04-24 11:13:26 +00:00
parent 45247b4e35
commit e8382cca7c
2 changed files with 3 additions and 5 deletions

View File

@ -65,13 +65,13 @@ void dump_pkg_full(PM_PKG *pkg, int level)
printf("Reason: : "); printf("Reason: : ");
switch((int)alpm_pkg_getinfo(pkg, PM_PKG_REASON)) { switch((int)alpm_pkg_getinfo(pkg, PM_PKG_REASON)) {
case PM_PKG_REASON_EXPLICIT: case PM_PKG_REASON_EXPLICIT:
printf("explicitly installed\n"); printf("Explicitly installed\n");
break; break;
case PM_PKG_REASON_DEPEND: case PM_PKG_REASON_DEPEND:
printf("installed as a dependency for another package\n"); printf("Installed as a dependency for another package\n");
break; break;
default: default:
printf("unknown\n"); printf("Unknown\n");
break; break;
} }

View File

@ -711,13 +711,11 @@ int pacman_sync(list_t *targets)
} }
/* Step 3: actually perform the installation */ /* Step 3: actually perform the installation */
MSG(NL, "commiting sync transaction... ");
if(alpm_trans_commit(&data) == -1) { if(alpm_trans_commit(&data) == -1) {
ERR(NL, "failed to commit transaction (%s)\n", alpm_strerror(pm_errno)); ERR(NL, "failed to commit transaction (%s)\n", alpm_strerror(pm_errno));
retval = 1; retval = 1;
goto cleanup; goto cleanup;
} }
MSG(CL, "done.\n");
if(!varcache && !pmo_s_downloadonly) { if(!varcache && !pmo_s_downloadonly) {
/* delete packages */ /* delete packages */