diff options
author | Chantry Xavier <shiningxc@gmail.com> | 2007-10-05 01:13:09 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2007-10-05 01:13:09 +0200 |
commit | 98bcd1f5b1023b9eb219589c809fb2505079965d (patch) | |
tree | 55c0e3eb36ce5c28d45248419125db6262126b88 /lib/libalpm/alpm_list.h | |
parent | 02ec82b8c6fb2b2b89df92d79e9f8a28ce093cbe (diff) | |
download | pacman-98bcd1f5b1023b9eb219589c809fb2505079965d.tar.gz pacman-98bcd1f5b1023b9eb219589c809fb2505079965d.tar.xz |
Fix -Sy and -Sp operations.
When the -Sy operation failed, the lock wasn't removed because
alpm_trans_release wasn't called. This is fixed now.
Also, after my last change in commit 52e7e6d74733f7a431376a9e528c4fe4d3732068 ,
Sp didn't do anything anymore.
That's because needs_transaction returned false for -Sp, so the sync transaction
wasn't run. However, the current implementation of -Sp requires a sync transaction.
Also, since a transaction creates the lock file at the beginning, and releases it
at the end, this mean that -Sp requires root access anyway..
I think I understand now why Aaron found that the current -Sp implementation is hackish :)
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'lib/libalpm/alpm_list.h')
0 files changed, 0 insertions, 0 deletions