Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 290998 Details for
Bug 427768
Inheritance and package removal
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
fix package section inheritance
patch (text/plain), 1.68 KB, created by
Chris Lumens
on 2008-01-07 19:10:55 UTC
(
hide
)
Description:
fix package section inheritance
Filename:
MIME Type:
Creator:
Chris Lumens
Created:
2008-01-07 19:10:55 UTC
Size:
1.68 KB
patch
obsolete
>diff --git a/pykickstart/parser.py b/pykickstart/parser.py >index 65786c4..03b007a 100644 >--- a/pykickstart/parser.py >+++ b/pykickstart/parser.py >@@ -3,7 +3,7 @@ > # > # Chris Lumens <clumens@redhat.com> > # >-# Copyright 2005, 2006, 2007 Red Hat, Inc. >+# Copyright 2005, 2006, 2007, 2008 Red Hat, Inc. > # > # This copyrighted material is made available to anyone wishing to use, modify, > # copy, or redistribute it subject to the terms and conditions of the GNU >@@ -38,6 +38,7 @@ import string > import tempfile > from copy import copy > from optparse import * >+from sets import * > from urlgrabber import urlopen > import urlgrabber.grabber as grabber > >@@ -321,15 +322,26 @@ class Packages: > """Given a list of lines from the input file, strip off any leading > symbols and add the result to the appropriate list. > """ >+ existingExcludedSet = Set(self.excludedList) >+ existingPackageSet = Set(self.packageList) >+ newExcludedSet = Set() >+ newPackageSet = Set() >+ > for pkg in pkgList: > stripped = pkg.strip() > > if stripped[0] == "@": > self._processGroup(stripped[1:]) > elif stripped[0] == "-": >- self.excludedList.append(stripped[1:]) >+ newExcludedSet.add(stripped[1:]) > else: >- self.packageList.append(stripped) >+ newPackageSet.add(stripped) >+ >+ existingPackageSet = (existingPackageSet - newExcludedSet) | newPackageSet >+ existingExcludedSet = (existingExcludedSet - existingPackageSet) | newExcludedSet >+ >+ self.packageList = list(existingPackageSet) >+ self.excludedList = list(existingExcludedSet) > > > ###
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 427768
: 290998