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 # installed packages
self.installdb.add_package(self.pkginfo) 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) self.historydb.add_and_update(pkgBefore=self.old_pkginfo, pkgAfter=self.pkginfo, operation=opttostr[self.operation], otype=otype)
def install_single(pkg, upgrade = False): def install_single(pkg, upgrade = False):