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 dpkg

 
 
LinkBack Thread Tools
 
Old 02-14-2012, 03:39 PM
Radek Vykydal
 
Default Generate repo= ks command only for repos added by user (#738577)

On 02/14/2012 05:01 PM, Chris Lumens wrote:

diff --git a/yuminstall.py b/yuminstall.py
index 890ed83..1a0db11 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -2016,6 +2016,11 @@ debuglevel=6
for repo in self.ayum.repos.listEnabled():
if repo.name == "Installation Repo":
continue
+ if repo.name == "Red Hat Enterprise Linux":
+ continue
+ # ignore addon repos from media
+ if repo.anacondaBaseURLs[0].startswith("file://"):
+ continue

line = "repo --name="%s" " % (repo.name or repo.repoid)

Looking at yuminstall.py, I see no guarantees that an addon repo's URL
starts with "file://". You could, however, set an "addon" attribute on
AnacondaYumRepo and check for that.



Note that I don't want to exclude all addon repos.
What you suggest was exactly one option I was considering,
but finally I decided that I want to exclude only addon repos
from media - those that make generated ks fail (the bz issue),
not e.g. addon repos enabled in task screen. Having the latter
in generated repo= makes sense to me and there could
be people relying on this behaviour). In this case new attribute
seems is overkill.

(Originally I was even considering repo.type attribute (values
'addon', 'base') to be able to handle base repos independently
of RHEL/Fedora and repo name)


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 02-17-2012, 03:07 PM
Chris Lumens
 
Default Generate repo= ks command only for repos added by user (#738577)

> Note that I don't want to exclude all addon repos.
> What you suggest was exactly one option I was considering,
> but finally I decided that I want to exclude only addon repos
> from media - those that make generated ks fail (the bz issue),
> not e.g. addon repos enabled in task screen. Having the latter
> in generated repo= makes sense to me and there could
> be people relying on this behaviour). In this case new attribute
> seems is overkill.

Okay, this makes sense to me.

- Chris

_______________________________________________
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 07:18 AM.

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