FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian ISP

 
 
LinkBack Thread Tools
 
Old 03-08-2011, 07:01 PM
Chris Lumens
 
Default Shorten the anaconda repo names (#679434).

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(anacondaba seurl)
for (name, uri) in self.anaconda.instClass.getPackagePaths(self._base RepoURL).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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 04:23 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org