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/pmpkg.py | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'test/pacman/pmpkg.py') diff --git a/test/pacman/pmpkg.py b/test/pacman/pmpkg.py index 2b4a4a72..336f2974 100755 --- a/test/pacman/pmpkg.py +++ b/test/pacman/pmpkg.py @@ -64,16 +64,6 @@ class pmpkg: "pre_upgrade": "", "post_upgrade": "" } - self.checksum = { - "desc": "", - "files": "", - "install": "" - } - self.mtime = { - "desc": (0, 0, 0), - "files": (0, 0, 0), - "install": (0, 0, 0) - } def __str__(self): s = ["%s" % self.fullname()] @@ -97,13 +87,6 @@ class pmpkg: """ return "%s%s" % (self.fullname(), util.PM_EXT_PKG) - def install_files(self, root): - """Install files in the filesystem located under "root". - - Files are created with content generated automatically. - """ - [util.mkfile(os.path.join(root, f), f) for f in self.files] - def makepkg(self, path): """Creates an ArchLinux package archive. -- cgit v1.2.3