diff options
author | Dan McGee <dan@archlinux.org> | 2011-09-02 00:16:56 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-09-03 04:45:03 +0200 |
commit | 37da18aee8d925ee5cd9f526f2c61d07e9db5b66 (patch) | |
tree | 3ed740826f4463c8779080b07b57adbde1fe5c3b /src/pacman/util.c | |
parent | d88e524e7c6e902dcf1c0afed52def0d8b430b25 (diff) | |
download | pacman-37da18aee8d925ee5cd9f526f2c61d07e9db5b66.tar.gz pacman-37da18aee8d925ee5cd9f526f2c61d07e9db5b66.tar.xz |
Move all callbacks up to the handle level
This was just disgusting before, unnecessary to limit these to only
usage in a transaction. Still a lot of more room for cleanup but we'll
start by attaching them to the handle rather than the transaction we may
or may not even want to use these callbacks.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/util.c')
-rw-r--r-- | src/pacman/util.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c index 599c18c4..594186f6 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -55,13 +55,7 @@ int trans_init(alpm_transflag_t flags, int check_valid) check_syncdbs(0, check_valid); - if(config->print) { - ret = alpm_trans_init(config->handle, flags, NULL, NULL, NULL); - } else { - ret = alpm_trans_init(config->handle, flags, cb_trans_evt, cb_trans_conv, - cb_trans_progress); - } - + ret = alpm_trans_init(config->handle, flags); if(ret == -1) { trans_init_error(); return -1; |