Sometimes, we introduce obsoletes or conflicts to packages
and in that case, the install test may fail, if it cannot remove
some packages.
# Run the transaction.
t.run()
- def localinstall(self, files, yes=None):
+ def localinstall(self, files, yes=None, allow_uninstall=False):
repo_name = repo_desc = "localinstall"
# Create a new repository that holds all packages we passed on
request.install(solv)
solver = self.create_solver()
- t = solver.solve(request)
+ t = solver.solve(request, uninstall=allow_uninstall)
# If solving was not possible, we exit here.
if not t:
for file in files:
pkgs.append(os.path.join(dir, file))
- self.pakfire.localinstall(pkgs, yes=True)
+ self.pakfire.localinstall(pkgs, yes=True, allow_uninstall=True)
def chrootPath(self, *args):
# Remove all leading slashes