diff options
author | Paul Nasrat <pnasrat@redhat.com> | 2005-11-14 18:36:22 +0000 |
---|---|---|
committer | Paul Nasrat <pnasrat@redhat.com> | 2005-11-14 18:36:22 +0000 |
commit | 12a5bc3bb395877bc23245f48a85d6aeaad20a14 (patch) | |
tree | 96df8916212dbdfc62c803d5dad1d70fc7ce6021 /genheader.py | |
parent | 8a7c23788bf053ed6aa47254b302107680cfb3d1 (diff) | |
download | anaconda-12a5bc3bb395877bc23245f48a85d6aeaad20a14.tar.gz anaconda-12a5bc3bb395877bc23245f48a85d6aeaad20a14.tar.xz anaconda-12a5bc3bb395877bc23245f48a85d6aeaad20a14.zip |
Tag addition method
Diffstat (limited to 'genheader.py')
-rw-r--r-- | genheader.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/genheader.py b/genheader.py index 29c5aa664..ba84a4c0c 100644 --- a/genheader.py +++ b/genheader.py @@ -104,7 +104,10 @@ class YumHeader: def convertTag(self, tag): if self.tagtbl.has_key(tag): (rpmtag, tagtype) = self.tagtbl[tag] - (count, data) = self.__format(rpmtag, tagtype, self.po.returnSimple(tag)) + self.addTag(rpmtag, tagtype, self.po.returnSimple(tag)) + + def addTag(self, rpmtag, tagtype, value): + (count, data) = self.__format(rpmtag, tagtype, value) pad = self.__alignTag(tagtype) self.offset += len(pad) self.indexes.append((rpmtag, tagtype,self.offset, count)) |