2010-10-14 14:32:03 +02:00
|
|
|
Index: TagsCheck.py
|
|
|
|
===================================================================
|
|
|
|
--- TagsCheck.py.orig
|
2010-04-05 18:53:54 +02:00
|
|
|
+++ TagsCheck.py
|
2010-10-14 14:32:03 +02:00
|
|
|
@@ -762,14 +762,14 @@ class TagsCheck(AbstractCheck.AbstractCh
|
2010-04-06 22:38:58 +02:00
|
|
|
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)
|
2010-04-05 18:53:54 +02:00
|
|
|
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)
|