def _populateChangeLog(self, header): l = [] for cinfo in header.get('changelog', []): cinst = headerSource.rpmChangeLog() cinst.populate(cinfo) l.append(cinst) self['changelog'] = l