2008-06-22 01:52:46 +02:00
|
|
|
--- TagsCheck.py
|
|
|
|
+++ TagsCheck.py
|
2009-03-13 16:06:45 +01:00
|
|
|
@@ -680,6 +680,7 @@
|
2008-06-22 01:52:46 +02:00
|
|
|
|
2009-03-13 16:06:45 +01:00
|
|
|
obs_names = map(lambda x: x[0], pkg.obsoletes())
|
|
|
|
prov_names = map(lambda x: x[0].split(':/')[0], pkg.provides())
|
|
|
|
+ conf_names = map(lambda x: x[0].split(':/')[0], pkg.conflicts())
|
|
|
|
req_names = map(lambda x: x[0], pkg.requires() + pkg.prereq())
|
2008-06-22 01:52:46 +02:00
|
|
|
|
2009-03-13 16:06:45 +01:00
|
|
|
if pkg.name in obs_names:
|
|
|
|
@@ -695,6 +696,8 @@
|
|
|
|
# https://bugzilla.redhat.com/460872
|
|
|
|
useless_provides=[]
|
|
|
|
for p in prov_names:
|
|
|
|
+ if p in conf_names:
|
|
|
|
+ printWarning(pkg, 'conflicts-with-provides', p)
|
|
|
|
if prov_names.count(p) != 1:
|
2008-06-22 01:52:46 +02:00
|
|
|
if p not in useless_provides:
|
2009-03-13 16:06:45 +01:00
|
|
|
useless_provides.append(p)
|
|
|
|
@@ -796,6 +799,10 @@
|
2008-06-22 01:52:46 +02:00
|
|
|
'''There is no Name tag in your package. You have to specify a name using the
|
|
|
|
Name tag.''',
|
|
|
|
|
|
|
|
+'conflicts-with-provides',
|
|
|
|
+'''The same symbolic name is provided and conflicted. This package might be
|
|
|
|
+uninstallable, if versioning matches''',
|
|
|
|
+
|
|
|
|
'non-coherent-filename',
|
|
|
|
'''The file which contains the package should be named
|
|
|
|
<NAME>-<VERSION>-<RELEASE>.<ARCH>.rpm.''',
|