rpmlint/rpmlint-0.71-disttag.patch

12 lines
639 B
Diff
Raw Normal View History

--- TagsCheck.py~ 2006-01-15 23:33:42.000000000 +0200
+++ TagsCheck.py 2006-01-15 23:34:30.000000000 +0200
@@ -424,2 +424,3 @@
changelog_version_regex=re.compile('[^>]([^ >]+)\s*$')
+fedora_disttag_regex=re.compile('\.(fc|rhe?l)\d+$')
release_ext=Config.getOption('ReleaseExtension', 'mdk')
@@ -636,3 +637,3 @@
expected=str(epoch) + ':' + expected
- if expected != ret.group(1):
+ if ret.group(1) not in (expected, fedora_disttag_regex.sub('', expected)):
printWarning(pkg, 'incoherent-version-in-changelog', ret.group(1), expected)