diff --git a/pisi/configfile.py b/pisi/configfile.py index 5d01398c..fc83d5de 100644 --- a/pisi/configfile.py +++ b/pisi/configfile.py @@ -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 diff --git a/pisi/package.py b/pisi/package.py index fffde9d6..233130ea 100644 --- a/pisi/package.py +++ b/pisi/package.py @@ -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)