todo = zypp.GetResolvablesToInsDel(self.Z.pool())
installed_pkgs = todo._toInstall
dlpkgs = []
+ update_only = False
# re-create image with updating some packages
if len(installed_pkgs) == 0:
self.deleteUpdatedPkgs()
installed_pkgs = self.update_pkgs
+ update_only = True
for pitem in installed_pkgs:
if not zypp.isKindPattern(pitem) and \
nocache = repo.nocache if repo else False
if os.path.exists(local):
- if nocache or self.checkPkg(local) !=0:
+ if nocache or self.checkPkg(local) !=0 or update_only:
os.unlink(local)
else:
download_total_size -= int(po.downloadSize())