forked from pool/rpmlint
4d4e6f73c7
Copy from Base:System/rpmlint based on submit request 50483 from user prusnak OBS-URL: https://build.opensuse.org/request/show/50483 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=68
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
--- TagsCheck.py
|
|
+++ TagsCheck.py
|
|
@@ -801,6 +801,7 @@
|
|
|
|
obs_names = [x[0] for x in pkg.obsoletes()]
|
|
prov_names = [x[0].split(':/')[0] for x in pkg.provides()]
|
|
+ conf_names = map(lambda x: x[0].split(':/')[0], pkg.conflicts())
|
|
|
|
for o in (x for x in obs_names if x not in prov_names):
|
|
printWarning(pkg, 'obsolete-not-provided', o)
|
|
@@ -812,6 +813,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 and p not in useless_provides:
|
|
useless_provides.append(p)
|
|
for p in useless_provides:
|
|
@@ -952,6 +955,10 @@
|
|
'''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.''',
|