summaryrefslogtreecommitdiffstats
path: root/test/pacman/pmdb.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-24 04:35:32 +0200
committerDan McGee <dan@archlinux.org>2011-06-30 18:55:00 +0200
commit0ed848a9ea7a543192cef1ca78695a9046ee4e98 (patch)
tree195bba351892afdd328adf397607f74648850d24 /test/pacman/pmdb.py
parent13235ba65ab55d852dbdc0acabdc047442e74e28 (diff)
downloadpacman-0ed848a9ea7a543192cef1ca78695a9046ee4e98.tar.gz
pacman-0ed848a9ea7a543192cef1ca78695a9046ee4e98.tar.xz
pactest: create packages in memory
This is similar to what was just done for the sync databases. Move a few pieces around so we never need to actually write out the filesystem to create a package, and simply stream the tarfile out from the data we've collected. Once again, a few newline addition hacks and other things have to be left in place in order not to break everything; this time however most of the assumptions are in pactest and not libalpm. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'test/pacman/pmdb.py')
-rw-r--r--test/pacman/pmdb.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/pacman/pmdb.py b/test/pacman/pmdb.py
index 06bc9a6f..90b817ac 100644
--- a/test/pacman/pmdb.py
+++ b/test/pacman/pmdb.py
@@ -229,8 +229,7 @@ class pmdb(object):
path = os.path.join(self.dbdir, pkg.fullname())
util.mkdir(path)
for name, data in entry.iteritems():
- filename = os.path.join(path, name)
- util.mkfile(filename, data)
+ util.mkfile(path, name, data)
if self.dbfile:
tar = tarfile.open(self.dbfile, "w:gz")