What about using the prefix Rom in the file name? RomPkg.py? Same for
the other new files that we are introducing.
+class Pkg(object):
+ """Represents a source RPM"""
Typo! It is not restricted to source RPMs. :-)
+ def getGroup(self):
+ """
+ Returns group.
+ """
+ return self.hdr[rpm.RPMTAG_GROUP]
+
+ def getName(self):
+ """
+ Returns name.
+ """
+ return self.hdr[rpm.RPMTAG_NAME]
+
[...]
Ideally these should have been replaced by __getitem__. My fault.
Happy hacking,
Debarshi