Skip to content

Commit

Permalink
Merge pull request #47 from fedora-infra/feature/force-lowercase
Browse files Browse the repository at this point in the history
Force lowercase when comparing package names with pkgdb.
  • Loading branch information
ralphbean committed Oct 13, 2015
2 parents 8ed08fe + dbe235c commit c928985
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fedbadges/rules.py
Expand Up @@ -411,6 +411,9 @@ def matches(self, msg):
user=expectation['user'],
)

# Force lowercase, https://github.com/fedora-infra/tahrir/issues/315
actual_packages = set(map(unicode.lower, actual_packages))

return set(expectation['packages']).issubset(actual_packages)


Expand Down

0 comments on commit c928985

Please sign in to comment.