xdeltaları config'de True ise kullanmayı dene, şu anda xdelta oluşturmadığımız için extra lookup işi ve kırmızı kırmızı warningler veriyor...

This commit is contained in:
S.Çağlar Onur
2006-07-05 12:39:56 +00:00
parent 74ea071e0a
commit 6d550154c3
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -20,6 +20,7 @@
#[general]
#destinationdirectory = /
#autoclean = False
#xdelta = False
#
#[build]
#host = i686-pc-linux-gnu
@@ -59,6 +60,7 @@ class GeneralDefaults:
"""Default values for [general] section"""
destinationdirectory = "/"
autoclean = False
xdelta = False
distribution = "Pardus"
distribution_release = "1.1"
http_proxy = os.getenv("HTTP_PROXY") or None
+2 -2
View File
@@ -50,7 +50,7 @@ class Package:
# if package is installed (which means we are upgrading it),
# calculate needed info
if ctx.installdb.is_installed(current_pkg):
if ctx.installdb.is_installed(current_pkg) and ctx.config.values.general.xdelta:
installed = True
# calculate currently installed package's name and pisi file's location
@@ -69,7 +69,7 @@ class Package:
else:
installed = False
if installed and exists(current_fn):
if installed and exists(current_fn) and ctx.config.values.general.xdelta:
# if package is installed and old pisi file exists, fetch xdelta
if not exists(xdelta_fn):
ctx.ui.info(_("Trying to fetch xdelta: %s") % xdelta_url)