rpmlint/rpmlint-disttag.patch
Ville Skyttä 35717146ab - Fix false "positives" from libtool archives confused as scripts,
non-executable scripts installed in docs, FE disttags, unsuccessfully
    expanded shell variables and quotation in init scripts.
2005-07-11 18:22:30 +00:00

26 lines
1.2 KiB
Diff

Index: TagsCheck.py
===================================================================
RCS file: /cooker/soft/rpmlint/TagsCheck.py,v
retrieving revision 1.84
diff -u -r1.84 TagsCheck.py
--- TagsCheck.py 1 Jul 2005 02:59:46 -0000 1.84
+++ TagsCheck.py 6 Jul 2005 14:19:23 -0000
@@ -419,6 +419,7 @@
packager_regex=re.compile(Config.getOption('Packager', DEFAULT_PACKAGER))
basename_regex=re.compile('/?([^/]+)$')
changelog_version_regex=re.compile('[^>]([^ >]+)\s*$')
+fedora_disttag_regex=re.compile('\.(fc|rhe?l)\d+$')
release_ext=Config.getOption('ReleaseExtension', 'mdk')
extension_regex=release_ext and re.compile(release_ext + '$')
use_version_in_changelog=Config.getOption('UseVersionInChangelog', 1)
@@ -626,7 +627,8 @@
expected=version + '-' + release
if epoch is not None:
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)
# provides=pkg.provides()