Use delta suffix value from constants.py
This commit is contained in:
@@ -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
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user