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]
|
#[general]
|
||||||
#destinationdirectory = /
|
#destinationdirectory = /
|
||||||
#autoclean = False
|
#autoclean = False
|
||||||
|
#xdelta = False
|
||||||
#
|
#
|
||||||
#[build]
|
#[build]
|
||||||
#host = i686-pc-linux-gnu
|
#host = i686-pc-linux-gnu
|
||||||
@@ -59,6 +60,7 @@ class GeneralDefaults:
|
|||||||
"""Default values for [general] section"""
|
"""Default values for [general] section"""
|
||||||
destinationdirectory = "/"
|
destinationdirectory = "/"
|
||||||
autoclean = False
|
autoclean = False
|
||||||
|
xdelta = False
|
||||||
distribution = "Pardus"
|
distribution = "Pardus"
|
||||||
distribution_release = "1.1"
|
distribution_release = "1.1"
|
||||||
http_proxy = os.getenv("HTTP_PROXY") or None
|
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),
|
# if package is installed (which means we are upgrading it),
|
||||||
# calculate needed info
|
# 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
|
installed = True
|
||||||
|
|
||||||
# calculate currently installed package's name and pisi file's location
|
# calculate currently installed package's name and pisi file's location
|
||||||
@@ -69,7 +69,7 @@ class Package:
|
|||||||
else:
|
else:
|
||||||
installed = False
|
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 package is installed and old pisi file exists, fetch xdelta
|
||||||
if not exists(xdelta_fn):
|
if not exists(xdelta_fn):
|
||||||
ctx.ui.info(_("Trying to fetch xdelta: %s") % xdelta_url)
|
ctx.ui.info(_("Trying to fetch xdelta: %s") % xdelta_url)
|
||||||
|
|||||||
Reference in New Issue
Block a user