[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] Shorten the anaconda repo names (#679434).
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Subject: [PATCH] Shorten the anaconda repo names (#679434).
- Date: Tue, 8 Mar 2011 15:01:30 -0500
This prevents post-install strings from looking out of control, and should
still make for unique names.
---
pyanaconda/yuminstall.py | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index fe88586..2369029 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -509,9 +509,7 @@ class AnacondaYum(yum.YumBase):
"cdrom:%s" % (self.anaconda.mediaDevice))
anacondabasepaths = self.anaconda.instClass.getPackagePaths(anacondabaseurl)
for (name, uri) in self.anaconda.instClass.getPackagePaths(self._baseRepoURL).items():
- rid = name.replace(" ", "")
-
- repo = AnacondaYumRepo("anaconda-%s-%s" % (rid, productStamp))
+ repo = AnacondaYumRepo("anaconda-%s" % self.repoIDcounter.next())
repo.baseurl = uri
repo.anacondaBaseURLs = anacondabasepaths[name]
@@ -520,7 +518,7 @@ class AnacondaYum(yum.YumBase):
if self.anaconda.mediaDevice or self.isodir:
repo.mediaid = getMediaId(self.tree)
- log.info("set mediaid of repo %s to: %s" % (rid, repo.mediaid))
+ log.info("set mediaid of repo %s to: %s" % (repo.name, repo.mediaid))
if self.anaconda.proxy:
self.setProxy(self.anaconda, repo)
@@ -788,9 +786,8 @@ class AnacondaYum(yum.YumBase):
#Add the Driver disc repos to Yum
for d in glob.glob(DD_RPMS):
dirname = os.path.basename(d)
- rid = "anaconda-%s" % dirname
- repo = AnacondaYumRepo(rid)
+ repo = AnacondaYumRepo("anaconda-%s" % self.repoIDcounter.next())
repo.baseurl = [ "file://%s" % d ]
repo.name = "Driver Disk %s" % dirname.split("-")[1]
repo.enable()
--
1.7.4.1
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]