summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-05-02 20:18:27 +0200
committerAurelien Foret <aurelien@archlinux.org>2005-05-02 20:18:27 +0200
commitc99a4c85c0763b1f7f21a157eecf614c626330b6 (patch)
tree25cc0d437cd025b71db3e7f8e74dd9bb6fdfd474 /lib/libalpm
parenta93521aca3f1446138458d9c24a583121390cdd9 (diff)
downloadpacman-c99a4c85c0763b1f7f21a157eecf614c626330b6.tar.gz
pacman-c99a4c85c0763b1f7f21a157eecf614c626330b6.tar.xz
code cleanup
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/sync.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 113fec9d..15ea7789 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -364,8 +364,7 @@ int sync_prepare(pmtrans_t *trans, pmdb_t *db_local, PMList *dbs_sync, PMList **
}
TRANS_CB(trans, PM_TRANS_EVT_RESOLVEDEPS_DONE, NULL, NULL);
- /* ORE
- check for inter-conflicts and whatnot */
+ /* check for inter-conflicts and whatnot */
TRANS_CB(trans, PM_TRANS_EVT_INTERCONFLICTS_START, NULL, NULL);
deps = checkdeps(db_local, PM_TRANS_TYPE_UPGRADE, list);
if(deps) {
@@ -484,7 +483,7 @@ int sync_commit(pmtrans_t *trans, pmdb_t *db_local)
tr = trans_new(PM_TRANS_TYPE_REMOVE, PM_TRANS_FLAG_NODEPS);
/* ORE */
if(tr == NULL) {
- _alpm_log(PM_LOG_ERROR, "could not create transaction");
+ _alpm_log(PM_LOG_ERROR, "could not create removal transaction");
pm_errno = PM_ERR_XXX;
goto error;
}
@@ -507,14 +506,14 @@ int sync_commit(pmtrans_t *trans, pmdb_t *db_local)
if(replaces) {
_alpm_log(PM_LOG_FLOW1, "removing to-be-replaced packages");
if(trans_prepare(tr, &data) == -1) {
- _alpm_log(PM_LOG_ERROR, "could not prepare transaction");
+ _alpm_log(PM_LOG_ERROR, "could not prepare removal transaction");
pm_errno = PM_ERR_XXX;
goto error;
}
/* we want the frontend to be aware of commit details */
tr->cb = trans->cb;
if(trans_commit(tr) == -1) {
- _alpm_log(PM_LOG_ERROR, "could not commit transaction");
+ _alpm_log(PM_LOG_ERROR, "could not commit removal transaction");
pm_errno = PM_ERR_XXX;
goto error;
}