forked from pool/rpmlint
7a7cb5dedf
Copy from Base:System/rpmlint based on submit request 37121 from user dirkmueller OBS-URL: https://build.opensuse.org/request/show/37121 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=57
20 lines
957 B
Diff
20 lines
957 B
Diff
--- TagsCheck.py
|
|
+++ TagsCheck.py
|
|
@@ -741,14 +741,14 @@
|
|
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)
|