2008-05-01 14:19:31 +02:00
|
|
|
--- TagsCheck.py
|
|
|
|
+++ TagsCheck.py
|
|
|
|
@@ -686,6 +686,17 @@ class TagsCheck(AbstractCheck.AbstractCheck):
|
|
|
|
for p in useless_provides:
|
|
|
|
printError(pkg, 'useless-explicit-provides',p)
|
|
|
|
|
|
|
|
+ have_mono_reqs=False
|
2009-03-13 16:06:45 +01:00
|
|
|
+ for r in req_names + prov_names:
|
2008-05-01 14:19:31 +02:00
|
|
|
+ if r.startswith('mono('):
|
|
|
|
+ have_mono_reqs=True
|
|
|
|
+ break
|
|
|
|
+
|
|
|
|
+ if not have_mono_reqs:
|
|
|
|
+ for fname in pkg.files():
|
|
|
|
+ if fname.endswith('.dll'):
|
|
|
|
+ printError(pkg, 'mono-versioned-deps-missing', fname)
|
|
|
|
+
|
|
|
|
useless_reqs=set()
|
|
|
|
for r in reqs:
|
|
|
|
if not r in useless_reqs:
|
|
|
|
@@ -901,6 +912,11 @@ upgrade path. self-provides are autogenerated. Remove the provide.''',
|
|
|
|
'obsolete-on-name',
|
|
|
|
'''A package should not obsolete itself, as it can cause weird errors in tools.''',
|
|
|
|
|
|
|
|
+'mono-versioned-deps-missing',
|
|
|
|
+'''This package appears to be related to mono, but doesn't have versioned
|
|
|
|
+mono provides being generated. Add mono-devel to the buildrequires to
|
|
|
|
+build the package with the correct provides.''',
|
|
|
|
+
|
|
|
|
'invalid-filepath-dependency',
|
|
|
|
'''A package has a file or path based dependency that is not resolveable for
|
|
|
|
package solvers because it is not in the whitelist for path based dependencies
|