don't compare int with string (I wonder python doesn't raise)

This commit is contained in:
Stephan Kulow 2014-01-23 12:33:28 +01:00
parent 571bf8574a
commit 3e32c56137

View File

@ -667,7 +667,7 @@ def _check_repo_repo_list(self, prj, repo, arch, pkg, opts, ignore=False):
binaries = ET.parse(http_GET(url)).getroot()
for bin_ in binaries.findall('binary'):
fn = bin_.attrib['filename']
mt = bin_.attrib['mtime']
mt = int(bin_.attrib['mtime'])
result = re.match(r'(.*)-([^-]*)-([^-]*)\.([^-\.]+)\.rpm', fn)
if not result:
if fn == 'rpmlint.log':