[Fedora-livecd-list] [PATCH] Handle yum api change so that conditional dict has only package names, not objects.
Jesse Keating
jkeating at redhat.com
Tue Aug 12 12:48:23 UTC 2008
This is to resolve RH bug #458803
---
imgcreate/yuminst.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/imgcreate/yuminst.py b/imgcreate/yuminst.py
index a7b04b6..628b0cd 100644
--- a/imgcreate/yuminst.py
+++ b/imgcreate/yuminst.py
@@ -103,8 +103,8 @@ class LiveCDYum(yum.YumBase):
# dict so that things don't get pulled back in as a result
# of them. yes, this is ugly. conditionals should die.
for req, pkgs in self.tsInfo.conditionals.iteritems():
- if x in pkgs:
- pkgs.remove(x)
+ if x.name in pkgs:
+ pkgs.remove(x.name)
self.tsInfo.conditionals[req] = pkgs
else:
logging.warn("No such package %s to remove" %(pkg,))
--
1.5.5.2
--
Jesse Keating
Fedora -- Freedom² is a feature!
identi.ca: http://identi.ca/jkeating
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/livecd/attachments/20080812/1e06fe06/attachment.bin
More information about the livecd
mailing list