[pacman-dev] CVS update of pacman-lib/pactest/tests (upgrade023.py)
Date: Sunday, March 4, 2007 @ 05:27:49 Author: aaron Path: /home/cvs-pacman/pacman-lib/pactest/tests Added: upgrade023.py (1.1) * By Roman's request - proactive backup=() entry test case ---------------+ upgrade023.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) Index: pacman-lib/pactest/tests/upgrade023.py diff -u /dev/null pacman-lib/pactest/tests/upgrade023.py:1.1 --- /dev/null Sun Mar 4 05:27:49 2007 +++ pacman-lib/pactest/tests/upgrade023.py Sun Mar 4 05:27:49 2007 @@ -0,0 +1,17 @@ +self.description = "Upgrade a package, with a backup file in the NEW package only" + +lp = pmpkg("dummy") +lp.files = ["etc/dummy.conf*"] +self.addpkg2db("local", lp) + +p = pmpkg("dummy", "1.1-1") +p.files = ["etc/dummy.conf"] +p.backup = ["etc/dummy.conf"] +self.addpkg(p) + +self.args = "-U %s" % p.filename() + +self.addrule("PKG_VERSION=dummy|1.1-1") +self.addrule("!FILE_MODIFIED=etc/dummy.conf") +# Do we want this pacnew or not? +self.addrule("FILE_PACNEW=etc/dummy.conf")
participants (1)
-
Aaron Griffin