From: "Brian C. Lane" <bcl(a)redhat.com>
When the repodata was re-downloaded it would add the DD repos again
without checking to see if they were already there.
Resolves: rhbz#1268357
---
pyanaconda/packaging/__init__.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/pyanaconda/packaging/__init__.py b/pyanaconda/packaging/__init__.py
index 62d52c0..c7750dd 100644
--- a/pyanaconda/packaging/__init__.py
+++ b/pyanaconda/packaging/__init__.py
@@ -1026,10 +1026,12 @@ def addDriverRepos(self):
log.info("Running createrepo on %s", repo)
iutil.execWithRedirect("createrepo", [repo])
- ks_repo = self.data.RepoData(name="DD-%d" % dir_num,
- baseurl="file://"+repo,
- enabled=True)
- self.addRepo(ks_repo)
+ repo_name = "DD-%d" % dir_num
+ if repo_name not in self.addOns:
+ ks_repo = self.data.RepoData(name=repo_name,
+ baseurl="file://"+repo,
+ enabled=True)
+ self.addRepo(ks_repo)
# Add packages
if not os.path.exists("/run/install/dd_packages"):
--
To view this commit on github, visit
https://github.com/rhinstaller/anaconda/commit/70b6fcdac450e9646699ce3da4...