@ -1110,7 +1110,7 @@ class Britney:
self . excuses . append ( excuse )
self . excuses . append ( excuse )
return False
return False
excuse . addhtml( " Valid candidate " )
excuse . is_valid = True
self . excuses . append ( excuse )
self . excuses . append ( excuse )
return True
return True
@ -1216,7 +1216,7 @@ class Britney:
# if there is nothing wrong and there is something worth doing, this is a valid candidate
# if there is nothing wrong and there is something worth doing, this is a valid candidate
if not anywrongver and anyworthdoing :
if not anywrongver and anyworthdoing :
excuse . addhtml( " Valid candidate " )
excuse . is_valid = True
self . excuses . append ( excuse )
self . excuses . append ( excuse )
return True
return True
# else if there is something worth doing (but something wrong, too) this package won't be considered
# else if there is something worth doing (but something wrong, too) this package won't be considered
@ -1458,7 +1458,7 @@ class Britney:
# check if there is a `force' hint for this package, which allows it to go in even if it is not updateable
# check if there is a `force' hint for this package, which allows it to go in even if it is not updateable
forces = [ x for x in self . hints . search ( ' force ' , package = src ) if self . same_source ( source_u [ VERSION ] , x . version ) ]
forces = [ x for x in self . hints . search ( ' force ' , package = src ) if self . same_source ( source_u [ VERSION ] , x . version ) ]
if forces :
if forces :
excuse . dontinvalidate = 1
excuse . dontinvalidate = True
if not update_candidate and forces :
if not update_candidate and forces :
excuse . addhtml ( " Should ignore, but forced by %s " % ( forces [ 0 ] . user ) )
excuse . addhtml ( " Should ignore, but forced by %s " % ( forces [ 0 ] . user ) )
update_candidate = True
update_candidate = True
@ -1474,7 +1474,7 @@ class Britney:
# if the package can be updated, it is a valid candidate
# if the package can be updated, it is a valid candidate
if update_candidate :
if update_candidate :
excuse . addhtml( " Valid candidate " )
excuse . is_valid = True
# else it won't be considered
# else it won't be considered
else :
else :
excuse . addhtml ( " Not considered " )
excuse . addhtml ( " Not considered " )
@ -1535,6 +1535,7 @@ class Britney:
invalid . append ( valid . pop ( p ) )
invalid . append ( valid . pop ( p ) )
exclookup [ x ] . addhtml ( " Invalidated by dependency " )
exclookup [ x ] . addhtml ( " Invalidated by dependency " )
exclookup [ x ] . addhtml ( " Not considered " )
exclookup [ x ] . addhtml ( " Not considered " )
exclookup [ x ] . is_valid = False
i = i + 1
i = i + 1
def write_excuses ( self ) :
def write_excuses ( self ) :