package-news: ignore non-rpm files in tree walk.
This commit is contained in:
parent
b94b69703e
commit
b264bf0ca9
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user