summaryrefslogtreecommitdiff
path: root/DistUpgrade
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-09-22 19:37:29 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-09-22 19:37:29 +0200
commit80be6d4dd486d6c920b63ae52ebe7797e96eb0ee (patch)
treeaadfbb575bdce4dbcf8121d66ea57ac5fc91b2a6 /DistUpgrade
parent3c13b603ab6bb720861441a3992bff55831942bf (diff)
downloadpython-apt-80be6d4dd486d6c920b63ae52ebe7797e96eb0ee.tar.gz
* DistUpgrade/DistUpgradeControler.py:
- if we use backports, make sure apt uses the right dpkg
Diffstat (limited to 'DistUpgrade')
-rw-r--r--DistUpgrade/DistUpgradeControler.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/DistUpgrade/DistUpgradeControler.py b/DistUpgrade/DistUpgradeControler.py
index 441952b2..871d94d1 100644
--- a/DistUpgrade/DistUpgradeControler.py
+++ b/DistUpgrade/DistUpgradeControler.py
@@ -420,6 +420,9 @@ class DistUpgradeControler(object):
return res
def doDistUpgrade(self):
+ if self.options.haveBackports:
+ backportsdir = os.getcwd()+"/backports"
+ apt_pkg.Config.Set("Dir::Bin::dpkg",backportsdir+"/usr/bin/dpkg");
currentRetry = 0
fprogress = self._view.getFetchProgress()
iprogress = self._view.getInstallProgress(self.cache)