package-news: ignore non-rpm files in tree walk.

This commit is contained in:
Jimmy Berry 2017-03-23 18:20:35 -05:00
parent b94b69703e
commit b264bf0ca9

View File

@ -143,6 +143,8 @@ class ChangeLogger(cmdln.Cmdln):
elif os.path.isdir(arg):
for root, dirs, files in os.walk(arg):
for pkg in [ os.path.join(root, file) for file in files]:
if not pkg.endswith('.rpm'):
continue
h = self.readRpmHeader( pkg )
_getdata(h)
else: