From: Michael Tremer Date: Sat, 30 Apr 2011 16:26:16 +0000 (+0200) Subject: Reenable installation test. X-Git-Tag: 0.9.3~41^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b88090e99c04892694a2bf3881b181b956ff3574;p=pakfire.git Reenable installation test. --- diff --git a/pakfire/builder.py b/pakfire/builder.py index db648088a..5904d22ea 100644 --- a/pakfire/builder.py +++ b/pakfire/builder.py @@ -292,24 +292,12 @@ class Builder(object): transaction.run() def install_test(self): - return # XXX currently disabled - pkgs = [] - - # Connect packages to the FS repository. - r = repository.FileSystemRepository(self.pakfire) - for dir, subdirs, files in os.walk(self.chrootPath("result")): for file in files: - file = os.path.join(dir, file) - - if not file.endswith(PACKAGE_EXTENSION): - continue - - p = packages.BinaryPackage(self.pakfire, r, file) - pkgs.append(p) + pkgs.append(os.path.join(dir, file)) - self.install(pkgs) + self.pakfire.localinstall(pkgs) def chrootPath(self, *args): # Remove all leading slashes