mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-06-09 08:41:34 +00:00
Minor hint creation refactoring
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
6d2adb9e41
commit
513550a8f1
5
hints.py
5
hints.py
@ -133,12 +133,13 @@ class Hint(object):
|
|||||||
|
|
||||||
def age_day_hint(hints, who, hint_name, new_age, *args):
|
def age_day_hint(hints, who, hint_name, new_age, *args):
|
||||||
for package in args:
|
for package in args:
|
||||||
hints.add_hint('%s %s %s' % (hint_name, new_age, package), who)
|
h = [hint_name, new_age] + package.split(' ')
|
||||||
|
hints.add_hint(h, who)
|
||||||
|
|
||||||
|
|
||||||
def split_into_one_hint_per_package(hints, who, hint_name, *args):
|
def split_into_one_hint_per_package(hints, who, hint_name, *args):
|
||||||
for package in args:
|
for package in args:
|
||||||
hints.add_hint('%s %s' % (hint_name, package), who)
|
hints.add_hint([hint_name, package], who)
|
||||||
|
|
||||||
|
|
||||||
def single_hint_taking_list_of_packages(hints, who, *args):
|
def single_hint_taking_list_of_packages(hints, who, *args):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user