mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 10:34:05 +00:00 
			
		
		
		
	hints: use MigrationItem
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
This commit is contained in:
		
							parent
							
								
									f284e76cc4
								
							
						
					
					
						commit
						26ad5a9392
					
				
							
								
								
									
										6
									
								
								hints.py
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								hints.py
									
									
									
									
									
								
							@ -1,6 +1,6 @@
 | 
			
		||||
# -*- 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
 | 
			
		||||
# 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
 | 
			
		||||
# GNU General Public License for more details.
 | 
			
		||||
 | 
			
		||||
from migrationitem import HintItem
 | 
			
		||||
from migrationitem import MigrationItem
 | 
			
		||||
 | 
			
		||||
class HintCollection(object):
 | 
			
		||||
    def __init__(self):
 | 
			
		||||
@ -57,7 +57,7 @@ class Hint(object):
 | 
			
		||||
        if isinstance(self._packages, str):
 | 
			
		||||
            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):
 | 
			
		||||
        self._active = active
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user