SHA256
1
0
forked from pool/rpmlint
rpmlint/suse-url-check.diff

22 lines
1.1 KiB
Diff
Raw Normal View History

Index: TagsCheck.py
===================================================================
--- TagsCheck.py.orig
+++ TagsCheck.py
@@ -762,14 +762,14 @@ class TagsCheck(AbstractCheck.AbstractCh
if not valid_license:
self._unexpanded_macros(pkg, 'License', rpm_license)
- for tag in ('URL', 'DistURL', 'BugURL'):
+ for tag in ('URL', 'BugURL'):
if hasattr(rpm, 'RPMTAG_%s' % tag.upper()):
url = pkg[getattr(rpm, 'RPMTAG_%s' % tag.upper())]
self._unexpanded_macros(pkg, tag, url, is_url = True)
if url:
(scheme, netloc) = urlparse(url)[0:2]
if not scheme or not netloc or "." not in netloc or \
- scheme not in ('http', 'https', 'ftp') or \
+ scheme not in ('obs', 'http', 'https', 'ftp') or \
(Config.getOption('InvalidURL') and \
invalid_url_regex.search(url)):
printWarning(pkg, 'invalid-url', tag, url)