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:
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user