Skip to content

Commit

Permalink
Remove suse-ism
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomáš Chvátal committed Mar 30, 2020
1 parent a47903a commit 9f1d817
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions rpmlint/checks/BrandingPolicyCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,10 @@ def check(self, pkg):

# verify that it only supplements with packageand
found_packageand_supplement = False
correct_supplement = "packageand(%s:branding-%s)" % (branding_basename, branding_style)
correct_supplement = "(%s and branding-%s)" % (branding_basename, branding_style)
for s in pkg_supplements:
if s.startswith('packageand('):
if s != correct_supplement:
printError(pkg, 'suse-branding-wrong-branding-supplement', s)
if s == correct_supplement:
found_packageand_supplement = True
else:
printError(pkg, 'suse-branding-excessive-supplement', s)

if not found_packageand_supplement:
printError(pkg, 'suse-branding-supplement-missing', correct_supplement)
Expand Down Expand Up @@ -97,14 +93,9 @@ def check(self, pkg):
"""Please make sure that your provides entry reads like:
Provides: %name-branding = %version'.""",

'suse-branding-wrong-branding-supplement',
"""For consistency, the branding package should be in the form
Supplements: packageand(basebackage:branding-<flavor>
""",

'suse-branding-supplement-missing',
"""branding packages should provide a supplement in the form
Supplements: packageand(basepackage:branding-<flavour>)
Supplements: (basepackage and branding-<flavour>)
""",

'suse-branding-unversioned-requires',
Expand Down

0 comments on commit 9f1d817

Please sign in to comment.