summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2008-05-26 23:28:34 +0200
committerDan McGee <dan@archlinux.org>2008-05-29 06:37:21 -0500
commit1cca4ef764519c00326dc81669b2bbd4bf1b978f (patch)
tree4fe9201f19b0c8244dd0b5152990395ed06e2c8f
parentb262ddb2edb8a4622a9cd3c50f245a6fa7f35f75 (diff)
Remove PM_TRANS_EVT_EXTRACT_START.
This event was unused, was missing the equivalent EXTRACT_DONE event, and was useless because we already have ADD / UPGRADE START and DONE events. Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--lib/libalpm/add.c1
-rw-r--r--lib/libalpm/alpm.h2
-rw-r--r--src/pacman/callback.c1
3 files changed, 0 insertions, 4 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index a8249c40..c5454bab 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -806,7 +806,6 @@ static int commit_single_pkg(pmpkg_t *newpkg, int pkg_current, int pkg_count,
PROGRESS(trans, PM_TRANS_PROGRESS_ADD_START,
alpm_pkg_get_name(newpkg), 100, pkg_count, pkg_current);
}
- EVENT(trans, PM_TRANS_EVT_EXTRACT_DONE, NULL, NULL);
/* run the post-install script if it exists */
if(alpm_pkg_has_scriptlet(newpkg)
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index 4720b222..62a517b4 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -334,8 +334,6 @@ typedef enum _pmtransevt_t {
* to the callback, respectively.
*/
PM_TRANS_EVT_UPGRADE_DONE,
- /** Package was extracted. */
- PM_TRANS_EVT_EXTRACT_DONE,
/** Target package's integrity will be checked. */
PM_TRANS_EVT_INTEGRITY_START,
/** Target package's integrity was checked. */
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index 8a7af5c5..4c415e1a 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -226,7 +226,6 @@ void cb_trans_evt(pmtransevt_t event, void *data1, void *data2)
break;
/* all the simple done events, with fallthrough for each */
case PM_TRANS_EVT_FILECONFLICTS_DONE:
- case PM_TRANS_EVT_EXTRACT_DONE:
case PM_TRANS_EVT_CHECKDEPS_DONE:
case PM_TRANS_EVT_RESOLVEDEPS_DONE:
case PM_TRANS_EVT_INTERCONFLICTS_DONE: