From 32727efc38bf5376a402c4c4149cc4148ba2068b Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 26 Oct 2010 22:55:31 -0500 Subject: pactest: revamp modified logic Remove all logic dealing with PKG_MODIFIED as this rule no longer exists. This removes a bunch of unnecessary stat and checksum logic that most of the time we were never even using. Also update the file modified checks to mark every file created using mkfile() with an older time so any modified checks will just work without hacks. Signed-off-by: Dan McGee --- test/pacman/pmrule.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'test/pacman/pmrule.py') diff --git a/test/pacman/pmrule.py b/test/pacman/pmrule.py index c69e3cd3..3ba72fe7 100755 --- a/test/pacman/pmrule.py +++ b/test/pacman/pmrule.py @@ -69,13 +69,8 @@ def check(self, root, retcode, localdb, files): if not newpkg: success = 0 else: - util.vprint("\tnewpkg.checksum : %s" % newpkg.checksum) - util.vprint("\tnewpkg.mtime : %s" % newpkg.mtime) if case == "EXIST": success = 1 - elif case == "MODIFIED": - if not localdb.ispkgmodified(newpkg): - success = 0 elif case == "VERSION": if value != newpkg.version: success = 0 @@ -121,6 +116,7 @@ def check(self, root, retcode, localdb, files): if f.name == key: if not f.ismodified(): success = 0 + break elif case == "MODE": if not os.path.isfile(filename): success = 0 -- cgit v1.2.3-54-g00ecf