summaryrefslogtreecommitdiffstats
path: root/backend.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-09-03 10:30:02 -0400
committerChris Lumens <clumens@redhat.com>2008-09-03 10:30:02 -0400
commit9ea609e1364c57957237e5a5ed7ed8ded8357ad8 (patch)
tree765eaf6af5413943959000daafc0f66aec01d924 /backend.py
parentb803ca653ac6ccc6b0eac03055696b43901cebff (diff)
downloadanaconda-9ea609e1364c57957237e5a5ed7ed8ded8357ad8.tar.gz
anaconda-9ea609e1364c57957237e5a5ed7ed8ded8357ad8.tar.xz
anaconda-9ea609e1364c57957237e5a5ed7ed8ded8357ad8.zip
Do repo setup and sack setup as separate steps.
This fixes a bug where yum wants all the repos set up before it does sack setup that only appears with the blacklist/whiteout plugins enabled. It also brings us more in line with how yum really works - where the two are completely separate steps. backend.doRepoSetup has also been renamed to backend.doBackendSetup to sound a little less yum-specific.
Diffstat (limited to 'backend.py')
-rw-r--r--backend.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/backend.py b/backend.py
index e515bba00..ee4dad17b 100644
--- a/backend.py
+++ b/backend.py
@@ -187,11 +187,8 @@ class AnacondaBackend:
def kernelVersionList(self, rootPath="/"):
return []
- def doInitialSetup(self, anaconda):
- raise NotImplementedError
-
- def doRepoSetup(self, anaconda):
- log.warning("doRepoSetup not implemented for backend!")
+ def doBackendSetup(self, anaconda):
+ log.warning("doBackendSetup not implemented for backend!")
raise NotImplementedError
def groupExists(self, group):
@@ -245,10 +242,10 @@ class AnacondaBackend:
def complete(self, anaconda):
pass
-def doRepoSetup(anaconda):
- if anaconda.backend.doInitialSetup(anaconda) == DISPATCH_BACK:
+def doBackendSetup(anaconda):
+ if anaconda.backend.doBackendSetup(anaconda) == DISPATCH_BACK:
return DISPATCH_BACK
- anaconda.backend.doRepoSetup(anaconda)
+
if anaconda.id.upgrade:
anaconda.backend.checkSupportedUpgrade(anaconda)
iutil.writeRpmPlatform(anaconda.rootPath)