diff options
author | Dan McGee <dan@archlinux.org> | 2007-09-23 21:43:03 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-09-24 03:48:04 +0200 |
commit | 843d368ef60a74719dfc74a27de3fe3ef441951f (patch) | |
tree | e33e186ecf4ee8e86f31bea9f9aa028b0a362810 /pactest/tests/upgrade020.py | |
parent | 105fd40a4a9b221df0186e7500fe491b3b96d823 (diff) | |
download | pacman-843d368ef60a74719dfc74a27de3fe3ef441951f.tar.gz pacman-843d368ef60a74719dfc74a27de3fe3ef441951f.tar.xz |
libalpm/add.c: fix backup array issue
As seen with the recent upgrade of pacman and the removal of the
pacman.d/current mirrorlist, files that were formerly in the backup array
get deleted upon their removal, which could be dangerous. Instead, we should
use the combined backup array of the old and new package. This fix should
address this issue in a relatively straightforward way.
In addition, old files should be moved to pacsave locations as expected.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/tests/upgrade020.py')
-rw-r--r-- | pactest/tests/upgrade020.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pactest/tests/upgrade020.py b/pactest/tests/upgrade020.py index ab5fe225..6a7994bb 100644 --- a/pactest/tests/upgrade020.py +++ b/pactest/tests/upgrade020.py @@ -15,3 +15,4 @@ self.args = "-U %s" % p.filename() self.addrule("PKG_VERSION=dummy|1.0-2") self.addrule("FILE_MODIFIED=etc/dummy.conf") self.addrule("!FILE_PACNEW=etc/dummy.conf") +self.addrule("!FILE_PACSAVE=etc/dummy.conf") |