diff options
author | Chris Lumens <clumens@redhat.com> | 2009-03-04 11:30:25 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-03-04 15:33:27 -0500 |
commit | e7c78a0f7628c9413665faa16947a5f56babbdfc (patch) | |
tree | 042488f196f61b068935c921241f2b4fe8b4d628 | |
parent | 80e71234c8952f938964f3f9680e4b06f5d5201b (diff) | |
download | anaconda-e7c78a0f7628c9413665faa16947a5f56babbdfc.tar.gz anaconda-e7c78a0f7628c9413665faa16947a5f56babbdfc.tar.xz anaconda-e7c78a0f7628c9413665faa16947a5f56babbdfc.zip |
Treat the values in the reqmedia dict as lists, not dicts themselves.
I'm not sure how this code ever worked, but we are handling the values as
lists in most places so that's likely what we always meant to be doing.
-rw-r--r-- | sortedtransaction.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sortedtransaction.py b/sortedtransaction.py index e5b2f0276..d7384bbc6 100644 --- a/sortedtransaction.py +++ b/sortedtransaction.py @@ -50,12 +50,12 @@ class SplitMediaTransactionData(SortableTransactionData): return TransactionData.getMembers(self, pkgtup) if pkgtup is None: returnlist = [] - for key in self.reqmedia[self.curmedia]: - returnlist.extend(self.pkgdict[key]) + for ele in self.reqmedia[self.curmedia]: + returnlist.extend(self.pkgdict[ele]) return returnlist - if self.reqmedia[self.curmedia].has_key(pkgtup): + if pkgtup in self.reqmedia[self.curmedia]: return self.pkgdict[pkgtup] else: return [] |