SHA256
1
0
forked from pool/rpmlint
rpmlint/rpmgroup-checks.diff
OBS User autobuild 5e20a03ee9 Accepting request 30231 from Base:System
Copy from Base:System/rpmlint based on submit request 30231 from user lnussel

OBS-URL: https://build.opensuse.org/request/show/30231
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=50
2010-01-27 17:18:50 +00:00

14 lines
573 B
Diff

--- TagsCheck.py
+++ TagsCheck.py
@@ -626,7 +626,9 @@
if not group:
printError(pkg, 'no-group-tag')
else:
- if VALID_GROUPS and group not in VALID_GROUPS:
+ if pkg.name.find('-devel') != -1 and not group.startswith('Development/'):
+ printWarning(pkg, 'devel-package-with-non-devel-group', group)
+ elif VALID_GROUPS and group not in VALID_GROUPS:
printWarning(pkg, 'non-standard-group', group)
else:
res = AbstractCheck.macro_regex.search(group)