From 3189d3bc4a7b5f3e92db14256e307e9a58071b2a Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sat, 2 Jul 2011 02:01:39 +1000 Subject: Prefix alpm_transevt_t members with ALPM Signed-off-by: Allan McRae --- src/pacman/callback.c | 54 +++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'src/pacman/callback.c') diff --git a/src/pacman/callback.c b/src/pacman/callback.c index f579e7ae..6a65cbb0 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -156,93 +156,93 @@ static void fill_progress(const int bar_percent, const int disp_percent, void cb_trans_evt(alpm_transevt_t event, void *data1, void *data2) { switch(event) { - case PM_TRANS_EVT_CHECKDEPS_START: + case ALPM_TRANS_EVT_CHECKDEPS_START: printf(_("checking dependencies...\n")); break; - case PM_TRANS_EVT_FILECONFLICTS_START: + case ALPM_TRANS_EVT_FILECONFLICTS_START: if(config->noprogressbar) { printf(_("checking for file conflicts...\n")); } break; - case PM_TRANS_EVT_RESOLVEDEPS_START: + case ALPM_TRANS_EVT_RESOLVEDEPS_START: printf(_("resolving dependencies...\n")); break; - case PM_TRANS_EVT_INTERCONFLICTS_START: + case ALPM_TRANS_EVT_INTERCONFLICTS_START: printf(_("looking for inter-conflicts...\n")); break; - case PM_TRANS_EVT_ADD_START: + case ALPM_TRANS_EVT_ADD_START: if(config->noprogressbar) { printf(_("installing %s...\n"), alpm_pkg_get_name(data1)); } break; - case PM_TRANS_EVT_ADD_DONE: + case ALPM_TRANS_EVT_ADD_DONE: alpm_logaction(config->handle, "installed %s (%s)\n", alpm_pkg_get_name(data1), alpm_pkg_get_version(data1)); display_optdepends(data1); break; - case PM_TRANS_EVT_REMOVE_START: + case ALPM_TRANS_EVT_REMOVE_START: if(config->noprogressbar) { printf(_("removing %s...\n"), alpm_pkg_get_name(data1)); } break; - case PM_TRANS_EVT_REMOVE_DONE: + case ALPM_TRANS_EVT_REMOVE_DONE: alpm_logaction(config->handle, "removed %s (%s)\n", alpm_pkg_get_name(data1), alpm_pkg_get_version(data1)); break; - case PM_TRANS_EVT_UPGRADE_START: + case ALPM_TRANS_EVT_UPGRADE_START: if(config->noprogressbar) { printf(_("upgrading %s...\n"), alpm_pkg_get_name(data1)); } break; - case PM_TRANS_EVT_UPGRADE_DONE: + case ALPM_TRANS_EVT_UPGRADE_DONE: alpm_logaction(config->handle, "upgraded %s (%s -> %s)\n", (char *)alpm_pkg_get_name(data1), (char *)alpm_pkg_get_version(data2), (char *)alpm_pkg_get_version(data1)); display_new_optdepends(data2,data1); break; - case PM_TRANS_EVT_INTEGRITY_START: + case ALPM_TRANS_EVT_INTEGRITY_START: if(config->noprogressbar) { printf(_("checking package integrity...\n")); } break; - case PM_TRANS_EVT_DELTA_INTEGRITY_START: + case ALPM_TRANS_EVT_DELTA_INTEGRITY_START: printf(_("checking delta integrity...\n")); break; - case PM_TRANS_EVT_DELTA_PATCHES_START: + case ALPM_TRANS_EVT_DELTA_PATCHES_START: printf(_("applying deltas...\n")); break; - case PM_TRANS_EVT_DELTA_PATCH_START: + case ALPM_TRANS_EVT_DELTA_PATCH_START: printf(_("generating %s with %s... "), (char *)data1, (char *)data2); break; - case PM_TRANS_EVT_DELTA_PATCH_DONE: + case ALPM_TRANS_EVT_DELTA_PATCH_DONE: printf(_("success!\n")); break; - case PM_TRANS_EVT_DELTA_PATCH_FAILED: + case ALPM_TRANS_EVT_DELTA_PATCH_FAILED: printf(_("failed.\n")); break; - case PM_TRANS_EVT_SCRIPTLET_INFO: + case ALPM_TRANS_EVT_SCRIPTLET_INFO: printf("%s", (char *)data1); break; - case PM_TRANS_EVT_RETRIEVE_START: + case ALPM_TRANS_EVT_RETRIEVE_START: printf(_(":: Retrieving packages from %s...\n"), (char *)data1); break; - case PM_TRANS_EVT_DISKSPACE_START: + case ALPM_TRANS_EVT_DISKSPACE_START: if(config->noprogressbar) { printf(_("checking available disk space...\n")); } break; /* all the simple done events, with fallthrough for each */ - case PM_TRANS_EVT_FILECONFLICTS_DONE: - case PM_TRANS_EVT_CHECKDEPS_DONE: - case PM_TRANS_EVT_RESOLVEDEPS_DONE: - case PM_TRANS_EVT_INTERCONFLICTS_DONE: - case PM_TRANS_EVT_INTEGRITY_DONE: - case PM_TRANS_EVT_DELTA_INTEGRITY_DONE: - case PM_TRANS_EVT_DELTA_PATCHES_DONE: - case PM_TRANS_EVT_DISKSPACE_DONE: + case ALPM_TRANS_EVT_FILECONFLICTS_DONE: + case ALPM_TRANS_EVT_CHECKDEPS_DONE: + case ALPM_TRANS_EVT_RESOLVEDEPS_DONE: + case ALPM_TRANS_EVT_INTERCONFLICTS_DONE: + case ALPM_TRANS_EVT_INTEGRITY_DONE: + case ALPM_TRANS_EVT_DELTA_INTEGRITY_DONE: + case ALPM_TRANS_EVT_DELTA_PATCHES_DONE: + case ALPM_TRANS_EVT_DISKSPACE_DONE: /* nothing */ break; } -- cgit v1.2.3-70-g09d2 From 495ba26e63ec5cb6b8def29f4e22ea7c444348d8 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sat, 2 Jul 2011 02:01:39 +1000 Subject: Prefix alpm_transconv_t members with ALPM Signed-off-by: Allan McRae --- lib/libalpm/alpm.h | 14 +++++++------- lib/libalpm/deps.c | 6 +++--- lib/libalpm/sync.c | 10 +++++----- src/pacman/callback.c | 14 +++++++------- 4 files changed, 22 insertions(+), 22 deletions(-) (limited to 'src/pacman/callback.c') diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index 22861ffb..c9b2c850 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -849,13 +849,13 @@ typedef enum _alpm_transevt_t { /** Transaction Conversations (ie, questions) */ typedef enum _alpm_transconv_t { - PM_TRANS_CONV_INSTALL_IGNOREPKG = 1, - PM_TRANS_CONV_REPLACE_PKG = (1 << 1), - PM_TRANS_CONV_CONFLICT_PKG = (1 << 2), - PM_TRANS_CONV_CORRUPTED_PKG = (1 << 3), - PM_TRANS_CONV_LOCAL_NEWER = (1 << 4), - PM_TRANS_CONV_REMOVE_PKGS = (1 << 5), - PM_TRANS_CONV_SELECT_PROVIDER = (1 << 6), + ALPM_TRANS_CONV_INSTALL_IGNOREPKG = 1, + ALPM_TRANS_CONV_REPLACE_PKG = (1 << 1), + ALPM_TRANS_CONV_CONFLICT_PKG = (1 << 2), + ALPM_TRANS_CONV_CORRUPTED_PKG = (1 << 3), + ALPM_TRANS_CONV_LOCAL_NEWER = (1 << 4), + ALPM_TRANS_CONV_REMOVE_PKGS = (1 << 5), + ALPM_TRANS_CONV_SELECT_PROVIDER = (1 << 6), } alpm_transconv_t; /** Transaction Progress */ diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index 066f5703..f06e93cd 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -570,7 +570,7 @@ static alpm_pkg_t *resolvedep(alpm_handle_t *handle, alpm_depend_t *dep, if(_alpm_pkg_should_ignore(handle, pkg)) { int install = 0; if(prompt) { - QUESTION(handle->trans, PM_TRANS_CONV_INSTALL_IGNOREPKG, pkg, + QUESTION(handle->trans, ALPM_TRANS_CONV_INSTALL_IGNOREPKG, pkg, NULL, NULL, &install); } else { _alpm_log(handle, ALPM_LOG_WARNING, _("ignoring package %s-%s\n"), pkg->name, pkg->version); @@ -592,7 +592,7 @@ static alpm_pkg_t *resolvedep(alpm_handle_t *handle, alpm_depend_t *dep, if(_alpm_pkg_should_ignore(handle, pkg)) { int install = 0; if(prompt) { - QUESTION(handle->trans, PM_TRANS_CONV_INSTALL_IGNOREPKG, + QUESTION(handle->trans, ALPM_TRANS_CONV_INSTALL_IGNOREPKG, pkg, NULL, NULL, &install); } else { _alpm_log(handle, ALPM_LOG_WARNING, _("ignoring package %s-%s\n"), pkg->name, pkg->version); @@ -624,7 +624,7 @@ static alpm_pkg_t *resolvedep(alpm_handle_t *handle, alpm_depend_t *dep, int index = 0; if(count > 1) { /* if there is more than one provider, we ask the user */ - QUESTION(handle->trans, PM_TRANS_CONV_SELECT_PROVIDER, + QUESTION(handle->trans, ALPM_TRANS_CONV_SELECT_PROVIDER, providers, dep, NULL, &index); } if(index >= 0 && index < count) { diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 77f3bbaf..f179f8e7 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -163,7 +163,7 @@ int SYMEXPORT alpm_sync_sysupgrade(alpm_handle_t *handle, int enable_downgrade) } int doreplace = 0; - QUESTION(trans, PM_TRANS_CONV_REPLACE_PKG, lpkg, spkg, sdb->treename, &doreplace); + QUESTION(trans, ALPM_TRANS_CONV_REPLACE_PKG, lpkg, spkg, sdb->treename, &doreplace); if(!doreplace) { continue; } @@ -234,7 +234,7 @@ alpm_list_t SYMEXPORT *alpm_find_group_pkgs(alpm_list_t *dbs, if(_alpm_pkg_should_ignore(db->handle, pkg)) { ignorelist = alpm_list_add(ignorelist, pkg); int install = 0; - QUESTION(db->handle->trans, PM_TRANS_CONV_INSTALL_IGNOREPKG, pkg, + QUESTION(db->handle->trans, ALPM_TRANS_CONV_INSTALL_IGNOREPKG, pkg, NULL, NULL, &install); if(!install) continue; @@ -353,7 +353,7 @@ int _alpm_sync_prepare(alpm_handle_t *handle, alpm_list_t **data) see if they'd like to ignore them rather than failing the sync */ if(unresolvable != NULL) { int remove_unresolvable = 0; - QUESTION(trans, PM_TRANS_CONV_REMOVE_PKGS, unresolvable, + QUESTION(trans, ALPM_TRANS_CONV_REMOVE_PKGS, unresolvable, NULL, NULL, &remove_unresolvable); if(remove_unresolvable) { /* User wants to remove the unresolvable packages from the @@ -485,7 +485,7 @@ int _alpm_sync_prepare(alpm_handle_t *handle, alpm_list_t **data) alpm_pkg_t *sync = _alpm_pkg_find(trans->add, conflict->package1); alpm_pkg_t *local = _alpm_db_get_pkgfromcache(handle->db_local, conflict->package2); int doremove = 0; - QUESTION(trans, PM_TRANS_CONV_CONFLICT_PKG, conflict->package1, + QUESTION(trans, ALPM_TRANS_CONV_CONFLICT_PKG, conflict->package1, conflict->package2, conflict->reason, &doremove); if(doremove) { /* append to the removes list */ @@ -679,7 +679,7 @@ static int test_md5sum(alpm_trans_t *trans, const char *filepath, int ret = _alpm_test_md5sum(filepath, md5sum); if(ret == 1) { int doremove = 0; - QUESTION(trans, PM_TRANS_CONV_CORRUPTED_PKG, (char *)filepath, + QUESTION(trans, ALPM_TRANS_CONV_CORRUPTED_PKG, (char *)filepath, NULL, NULL, &doremove); if(doremove) { unlink(filepath); diff --git a/src/pacman/callback.c b/src/pacman/callback.c index 6a65cbb0..b5d0b68e 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -255,7 +255,7 @@ void cb_trans_conv(alpm_transconv_t event, void *data1, void *data2, void *data3, int *response) { switch(event) { - case PM_TRANS_CONV_INSTALL_IGNOREPKG: + case ALPM_TRANS_CONV_INSTALL_IGNOREPKG: if(!config->op_s_downloadonly) { *response = yesno(_(":: %s is in IgnorePkg/IgnoreGroup. Install anyway?"), alpm_pkg_get_name(data1)); @@ -263,13 +263,13 @@ void cb_trans_conv(alpm_transconv_t event, void *data1, void *data2, *response = 1; } break; - case PM_TRANS_CONV_REPLACE_PKG: + case ALPM_TRANS_CONV_REPLACE_PKG: *response = yesno(_(":: Replace %s with %s/%s?"), alpm_pkg_get_name(data1), (char *)data3, alpm_pkg_get_name(data2)); break; - case PM_TRANS_CONV_CONFLICT_PKG: + case ALPM_TRANS_CONV_CONFLICT_PKG: /* data parameters: target package, local package, conflict (strings) */ /* print conflict only if it contains new information */ if(strcmp(data1, data3) == 0 || strcmp(data2, data3) == 0) { @@ -285,7 +285,7 @@ void cb_trans_conv(alpm_transconv_t event, void *data1, void *data2, (char *)data2); } break; - case PM_TRANS_CONV_REMOVE_PKGS: + case ALPM_TRANS_CONV_REMOVE_PKGS: { alpm_list_t *unresolved = (alpm_list_t *) data1; alpm_list_t *namelist = NULL, *i; @@ -308,7 +308,7 @@ void cb_trans_conv(alpm_transconv_t event, void *data1, void *data2, alpm_list_free(namelist); } break; - case PM_TRANS_CONV_SELECT_PROVIDER: + case ALPM_TRANS_CONV_SELECT_PROVIDER: { alpm_list_t *providers = (alpm_list_t *)data1; int count = alpm_list_count(providers); @@ -320,7 +320,7 @@ void cb_trans_conv(alpm_transconv_t event, void *data1, void *data2, *response = select_question(count); } break; - case PM_TRANS_CONV_LOCAL_NEWER: + case ALPM_TRANS_CONV_LOCAL_NEWER: if(!config->op_s_downloadonly) { *response = yesno(_(":: %s-%s: local version is newer. Upgrade anyway?"), alpm_pkg_get_name(data1), @@ -329,7 +329,7 @@ void cb_trans_conv(alpm_transconv_t event, void *data1, void *data2, *response = 1; } break; - case PM_TRANS_CONV_CORRUPTED_PKG: + case ALPM_TRANS_CONV_CORRUPTED_PKG: *response = yesno(_(":: File %s is corrupted. Do you want to delete it?"), (char *)data1); break; -- cgit v1.2.3-70-g09d2 From bd88a8d5511c24db55dd2a5c04161918571dbfbd Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sat, 2 Jul 2011 02:01:39 +1000 Subject: Prefix alpm_transprog_t members with ALPM Signed-off-by: Allan McRae --- lib/libalpm/add.c | 12 ++++++------ lib/libalpm/alpm.h | 12 ++++++------ lib/libalpm/conflict.c | 4 ++-- lib/libalpm/diskspace.c | 6 +++--- lib/libalpm/remove.c | 6 +++--- lib/libalpm/sync.c | 4 ++-- src/pacman/callback.c | 12 ++++++------ 7 files changed, 28 insertions(+), 28 deletions(-) (limited to 'src/pacman/callback.c') diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index 2a8f3862..a0e5f1db 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -565,10 +565,10 @@ static int commit_single_pkg(alpm_handle_t *handle, alpm_pkg_t *newpkg, /* call PROGRESS once with 0 percent, as we sort-of skip that here */ if(is_upgrade) { - PROGRESS(trans, PM_TRANS_PROGRESS_UPGRADE_START, + PROGRESS(trans, ALPM_TRANS_PROGRESS_UPGRADE_START, alpm_pkg_get_name(newpkg), 0, pkg_count, pkg_current); } else { - PROGRESS(trans, PM_TRANS_PROGRESS_ADD_START, + PROGRESS(trans, ALPM_TRANS_PROGRESS_ADD_START, alpm_pkg_get_name(newpkg), 0, pkg_count, pkg_current); } @@ -592,11 +592,11 @@ static int commit_single_pkg(alpm_handle_t *handle, alpm_pkg_t *newpkg, } if(is_upgrade) { - PROGRESS(trans, PM_TRANS_PROGRESS_UPGRADE_START, + PROGRESS(trans, ALPM_TRANS_PROGRESS_UPGRADE_START, alpm_pkg_get_name(newpkg), percent, pkg_count, pkg_current); } else { - PROGRESS(trans, PM_TRANS_PROGRESS_ADD_START, + PROGRESS(trans, ALPM_TRANS_PROGRESS_ADD_START, alpm_pkg_get_name(newpkg), percent, pkg_count, pkg_current); } @@ -649,10 +649,10 @@ static int commit_single_pkg(alpm_handle_t *handle, alpm_pkg_t *newpkg, } if(is_upgrade) { - PROGRESS(trans, PM_TRANS_PROGRESS_UPGRADE_START, + PROGRESS(trans, ALPM_TRANS_PROGRESS_UPGRADE_START, alpm_pkg_get_name(newpkg), 100, pkg_count, pkg_current); } else { - PROGRESS(trans, PM_TRANS_PROGRESS_ADD_START, + PROGRESS(trans, ALPM_TRANS_PROGRESS_ADD_START, alpm_pkg_get_name(newpkg), 100, pkg_count, pkg_current); } diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index c9b2c850..b891e453 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -860,12 +860,12 @@ typedef enum _alpm_transconv_t { /** Transaction Progress */ typedef enum _alpm_transprog_t { - PM_TRANS_PROGRESS_ADD_START, - PM_TRANS_PROGRESS_UPGRADE_START, - PM_TRANS_PROGRESS_REMOVE_START, - PM_TRANS_PROGRESS_CONFLICTS_START, - PM_TRANS_PROGRESS_DISKSPACE_START, - PM_TRANS_PROGRESS_INTEGRITY_START, + ALPM_TRANS_PROGRESS_ADD_START, + ALPM_TRANS_PROGRESS_UPGRADE_START, + ALPM_TRANS_PROGRESS_REMOVE_START, + ALPM_TRANS_PROGRESS_CONFLICTS_START, + ALPM_TRANS_PROGRESS_DISKSPACE_START, + ALPM_TRANS_PROGRESS_INTEGRITY_START, } alpm_transprog_t; /** Transaction Event callback */ diff --git a/lib/libalpm/conflict.c b/lib/libalpm/conflict.c index 7324e34e..af1bce15 100644 --- a/lib/libalpm/conflict.c +++ b/lib/libalpm/conflict.c @@ -389,7 +389,7 @@ alpm_list_t *_alpm_db_find_fileconflicts(alpm_handle_t *handle, } int percent = (current * 100) / numtargs; - PROGRESS(trans, PM_TRANS_PROGRESS_CONFLICTS_START, "", percent, + PROGRESS(trans, ALPM_TRANS_PROGRESS_CONFLICTS_START, "", percent, numtargs, current); /* CHECK 1: check every target against every target */ _alpm_log(handle, ALPM_LOG_DEBUG, "searching for file conflicts: %s\n", @@ -550,7 +550,7 @@ alpm_list_t *_alpm_db_find_fileconflicts(alpm_handle_t *handle, FREELIST(tmpfiles); } } - PROGRESS(trans, PM_TRANS_PROGRESS_CONFLICTS_START, "", 100, + PROGRESS(trans, ALPM_TRANS_PROGRESS_CONFLICTS_START, "", 100, numtargs, current); return conflicts; diff --git a/lib/libalpm/diskspace.c b/lib/libalpm/diskspace.c index f0e22a68..0ce4332d 100644 --- a/lib/libalpm/diskspace.c +++ b/lib/libalpm/diskspace.c @@ -285,7 +285,7 @@ int _alpm_check_diskspace(alpm_handle_t *handle) for(targ = trans->remove; targ; targ = targ->next, current++) { alpm_pkg_t *local_pkg; int percent = (current * 100) / numtargs; - PROGRESS(trans, PM_TRANS_PROGRESS_DISKSPACE_START, "", percent, + PROGRESS(trans, ALPM_TRANS_PROGRESS_DISKSPACE_START, "", percent, numtargs, current); local_pkg = targ->data; @@ -296,7 +296,7 @@ int _alpm_check_diskspace(alpm_handle_t *handle) for(targ = trans->add; targ; targ = targ->next, current++) { alpm_pkg_t *pkg, *local_pkg; int percent = (current * 100) / numtargs; - PROGRESS(trans, PM_TRANS_PROGRESS_DISKSPACE_START, "", percent, + PROGRESS(trans, ALPM_TRANS_PROGRESS_DISKSPACE_START, "", percent, numtargs, current); pkg = targ->data; @@ -315,7 +315,7 @@ int _alpm_check_diskspace(alpm_handle_t *handle) } } - PROGRESS(trans, PM_TRANS_PROGRESS_DISKSPACE_START, "", 100, + PROGRESS(trans, ALPM_TRANS_PROGRESS_DISKSPACE_START, "", 100, numtargs, current); for(i = mount_points; i; i = alpm_list_next(i)) { diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index ec8ba119..a90cd13a 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -405,7 +405,7 @@ int _alpm_remove_packages(alpm_handle_t *handle) _alpm_log(handle, ALPM_LOG_DEBUG, "removing %ld files\n", (unsigned long)filenum); /* init progress bar */ - PROGRESS(trans, PM_TRANS_PROGRESS_REMOVE_START, info->name, 0, + PROGRESS(trans, ALPM_TRANS_PROGRESS_REMOVE_START, info->name, 0, pkg_count, (pkg_count - targcount + 1)); /* iterate through the list backwards, unlinking files */ @@ -416,7 +416,7 @@ int _alpm_remove_packages(alpm_handle_t *handle) /* update progress bar after each file */ percent = (position * 100) / filenum; - PROGRESS(trans, PM_TRANS_PROGRESS_REMOVE_START, info->name, + PROGRESS(trans, ALPM_TRANS_PROGRESS_REMOVE_START, info->name, percent, pkg_count, (pkg_count - targcount + 1)); position++; } @@ -424,7 +424,7 @@ int _alpm_remove_packages(alpm_handle_t *handle) } /* set progress to 100% after we finish unlinking files */ - PROGRESS(trans, PM_TRANS_PROGRESS_REMOVE_START, pkgname, 100, + PROGRESS(trans, ALPM_TRANS_PROGRESS_REMOVE_START, pkgname, 100, pkg_count, (pkg_count - targcount + 1)); /* run the post-remove script if it exists */ diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index f179f8e7..1537347e 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -865,7 +865,7 @@ int _alpm_sync_commit(alpm_handle_t *handle, alpm_list_t **data) char *filepath; pgp_verify_t check_sig; - PROGRESS(trans, PM_TRANS_PROGRESS_INTEGRITY_START, "", percent, + PROGRESS(trans, ALPM_TRANS_PROGRESS_INTEGRITY_START, "", percent, numtargs, current); if(spkg->origin == PKG_FROM_FILE) { continue; /* pkg_load() has been already called, this package is valid */ @@ -895,7 +895,7 @@ int _alpm_sync_commit(alpm_handle_t *handle, alpm_list_t **data) _alpm_pkg_free_trans(spkg); /* spkg has been removed from the target list */ } - PROGRESS(trans, PM_TRANS_PROGRESS_INTEGRITY_START, "", 100, + PROGRESS(trans, ALPM_TRANS_PROGRESS_INTEGRITY_START, "", 100, numtargs, current); EVENT(trans, ALPM_TRANS_EVT_INTEGRITY_DONE, NULL, NULL); diff --git a/src/pacman/callback.c b/src/pacman/callback.c index b5d0b68e..d34aca13 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -381,22 +381,22 @@ void cb_trans_progress(alpm_transprog_t event, const char *pkgname, int percent, /* set text of message to display */ switch (event) { - case PM_TRANS_PROGRESS_ADD_START: + case ALPM_TRANS_PROGRESS_ADD_START: opr = _("installing"); break; - case PM_TRANS_PROGRESS_UPGRADE_START: + case ALPM_TRANS_PROGRESS_UPGRADE_START: opr = _("upgrading"); break; - case PM_TRANS_PROGRESS_REMOVE_START: + case ALPM_TRANS_PROGRESS_REMOVE_START: opr = _("removing"); break; - case PM_TRANS_PROGRESS_CONFLICTS_START: + case ALPM_TRANS_PROGRESS_CONFLICTS_START: opr = _("checking for file conflicts"); break; - case PM_TRANS_PROGRESS_DISKSPACE_START: + case ALPM_TRANS_PROGRESS_DISKSPACE_START: opr = _("checking available disk space"); break; - case PM_TRANS_PROGRESS_INTEGRITY_START: + case ALPM_TRANS_PROGRESS_INTEGRITY_START: opr = _("checking package integrity"); break; default: -- cgit v1.2.3-70-g09d2