summaryrefslogtreecommitdiffstats
path: root/test/pacman/tests/sync102.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-10-27 05:54:36 +0200
committerDan McGee <dan@archlinux.org>2011-01-22 18:19:17 +0100
commit5699f2c94c39afec19810fc450b78dced86e7c5d (patch)
tree1260860e9d199f78855aada5a479593cf3edce5b /test/pacman/tests/sync102.py
parent2a3b5e40bc92bf3c4f32c27c4030d80f97a5dee1 (diff)
downloadpacman-5699f2c94c39afec19810fc450b78dced86e7c5d.tar.gz
pacman-5699f2c94c39afec19810fc450b78dced86e7c5d.tar.xz
Modify all pactests to not use PKG_MODIFIED
All conditions that this particular rule tested are better served by using a more specific rule, whether that be checking a package version or whether files inside the package have changed or still exist. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'test/pacman/tests/sync102.py')
-rw-r--r--test/pacman/tests/sync102.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/pacman/tests/sync102.py b/test/pacman/tests/sync102.py
index 40a7ec99..bbd72147 100644
--- a/test/pacman/tests/sync102.py
+++ b/test/pacman/tests/sync102.py
@@ -1,7 +1,9 @@
self.description = "Sysupgrade with a newer local package"
sp = pmpkg("dummy", "0.9-1")
+sp.files = ["bin/foo", "bin/bar"]
lp = pmpkg("dummy")
+lp.files = ["bin/foo", "bin/baz"]
self.addpkg2db("sync", sp)
self.addpkg2db("local", lp)
@@ -9,4 +11,7 @@ self.addpkg2db("local", lp)
self.args = "-Su"
self.addrule("PACMAN_RETCODE=0")
-self.addrule("!PKG_MODIFIED=dummy")
+self.addrule("PKG_VERSION=dummy|1.0-1")
+self.addrule("FILE_EXIST=bin/foo")
+self.addrule("FILE_EXIST=bin/baz")
+self.addrule("!FILE_EXIST=bin/bar")