Use delta suffix value from constants.py

This commit is contained in:
Ozan Çağlayan
2010-03-01 14:30:29 +00:00
parent ac731fe864
commit bf71c9e10d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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):
+1 -1
View File
@@ -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()