summaryrefslogtreecommitdiffstats
path: root/test/pacman/pmpkg.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-10-27 05:55:31 +0200
committerDan McGee <dan@archlinux.org>2011-01-22 18:19:21 +0100
commit32727efc38bf5376a402c4c4149cc4148ba2068b (patch)
treeebbe400b78b4431ca197ee9c49541178ac4dc066 /test/pacman/pmpkg.py
parent5699f2c94c39afec19810fc450b78dced86e7c5d (diff)
downloadpacman-32727efc38bf5376a402c4c4149cc4148ba2068b.tar.gz
pacman-32727efc38bf5376a402c4c4149cc4148ba2068b.tar.xz
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 <dan@archlinux.org>
Diffstat (limited to 'test/pacman/pmpkg.py')
-rwxr-xr-xtest/pacman/pmpkg.py17
1 files changed, 0 insertions, 17 deletions
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.