rpmlint/rpmlint-0.71-disttag.patch
Ville Skyttä 21325e5a02 - Sync with upstream CVS as of 2006-01-15, includes improved versions of
most of the earlier patches.
- Add dependency on binutils.
2006-01-17 20:33:54 +00:00

12 lines
639 B
Diff

--- 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)