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/pmtest.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'test/pacman/pmtest.py') diff --git a/test/pacman/pmtest.py b/test/pacman/pmtest.py index 3f78ff92..e38d3a66 100644 --- a/test/pacman/pmtest.py +++ b/test/pacman/pmtest.py @@ -156,16 +156,11 @@ class pmtest(object): vprint(" Populating file system") for pkg in self.db["local"].pkgs: vprint("\tinstalling %s" % pkg.fullname()) - for f in pkg.files: - vprint("\t%s" % f) - path = os.path.join(self.root, f) - util.mkfile(path, f) - if os.path.isfile(path): - os.utime(path, (355, 355)) + pkg.install_package(self.root) for f in self.filesystem: vprint("\t%s" % f) + util.mkfile(self.root, f, f) path = os.path.join(self.root, f) - util.mkfile(path, f) if os.path.isfile(path): os.utime(path, (355, 355)) -- cgit v1.2.3