From 6d550154c30949212392416061aa65cacefe05c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Wed, 5 Jul 2006 12:39:56 +0000 Subject: [PATCH] =?UTF-8?q?xdeltalar=C4=B1=20config'de=20True=20ise=20kull?= =?UTF-8?q?anmay=C4=B1=20dene,=20=C5=9Fu=20anda=20xdelta=20olu=C5=9Fturmad?= =?UTF-8?q?=C4=B1=C4=9F=C4=B1m=C4=B1z=20i=C3=A7in=20extra=20lookup=20i?= =?UTF-8?q?=C5=9Fi=20ve=20k=C4=B1rm=C4=B1z=C4=B1=20k=C4=B1rm=C4=B1z=C4=B1?= =?UTF-8?q?=20warningler=20veriyor...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/configfile.py | 2 ++ pisi/package.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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)