From 0ed848a9ea7a543192cef1ca78695a9046ee4e98 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 23 Jun 2011 21:35:32 -0500 Subject: 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 --- test/pacman/pmdb.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/pacman/pmdb.py') 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") -- cgit v1.2.3-24-g4f1b