yum: rpmUtils module does not contain transaction?

Felix Schwarz <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
Hi,

I wanted to debug some other program which uses the rpmUtils package. The 
problem is that they do:
 > import rpmUtils
 > ts = rpmUtils.transaction.initReadOnlyTransaction()

With Python 2.5.1 (Fedora 8) this fails:
 > AttributeError: 'module' object has no attribute 'transaction'

And indeed, in rpmUtils/__init__.py there is no symbol named transaction. But 
there is a module called rpmUtils/transaction.py so this works for me:
 > from rpmUtils import transaction
 > ts = transaction.initReadOnlyTransaction()

However, the first pattern is used even in yum 3.2.20 so probably some Python 
wizard can explain this to me?

regards
fs

_______________________________________________
Yum mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum
smime.p7s (application/x-pkcs7-signature, 3.2 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.