diff --git a/pisi/atomicoperations.py b/pisi/atomicoperations.py index fbb7a779..828a6cf7 100644 --- a/pisi/atomicoperations.py +++ b/pisi/atomicoperations.py @@ -524,7 +524,7 @@ class Install(AtomicOperation): # installed packages self.installdb.add_package(self.pkginfo) - otype = "delta" if self.package_fname.endswith("delta.pisi") else None + otype = "delta" if self.package_fname.endswith(ctx.const.delta_package_suffix) else None self.historydb.add_and_update(pkgBefore=self.old_pkginfo, pkgAfter=self.pkginfo, operation=opttostr[self.operation], otype=otype) def install_single(pkg, upgrade = False): diff --git a/pisi/db/filesdb.py b/pisi/db/filesdb.py index ef5dc2d7..50cec8e9 100644 --- a/pisi/db/filesdb.py +++ b/pisi/db/filesdb.py @@ -70,7 +70,7 @@ class FilesDB(lazydb.LazyDB): files_db = os.path.join(ctx.config.info_dir(), ctx.const.files_db) if os.path.exists(files_db): os.unlink(files_db) - + def close(self): if isinstance(self.filesdb, shelve.DbfilenameShelf): self.filesdb.close()