mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-28 10:51:31 +00:00
hints: use MigrationItem
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
This commit is contained in:
parent
e75c4a4815
commit
504c0f9d0a
6
hints.py
6
hints.py
@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright (C) 2011 Adam D. Barratt <adsb@debian.org>
|
# Copyright (C) 2013 Adam D. Barratt <adsb@debian.org>
|
||||||
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -12,7 +12,7 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
from migrationitem import HintItem
|
from migrationitem import MigrationItem
|
||||||
|
|
||||||
class HintCollection(object):
|
class HintCollection(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -57,7 +57,7 @@ class Hint(object):
|
|||||||
if isinstance(self._packages, str):
|
if isinstance(self._packages, str):
|
||||||
self._packages = self._packages.split(' ')
|
self._packages = self._packages.split(' ')
|
||||||
|
|
||||||
self._packages = [HintItem(x) for x in self._packages]
|
self._packages = [MigrationItem(x) for x in self._packages]
|
||||||
|
|
||||||
def set_active(self, active):
|
def set_active(self, active):
|
||||||
self._active = active
|
self._active = active
|
||||||
|
Loading…
x
Reference in New Issue
Block a user