@ -332,10 +332,6 @@ class Britney:
help = " provide a command line interface to test hints " )
help = " provide a command line interface to test hints " )
parser . add_option ( " " , " --dry-run " , action = " store_true " , dest = " dry_run " , default = False ,
parser . add_option ( " " , " --dry-run " , action = " store_true " , dest = " dry_run " , default = False ,
help = " disable all outputs to the testing directory " )
help = " disable all outputs to the testing directory " )
parser . add_option ( " " , " --compatible " , action = " store_true " , dest = " compatible " , default = False ,
help = " enable full compatibility with old britney ' s output " )
parser . add_option ( " " , " --auto-hinter " , action = " store_true " , dest = " autohinter " , default = False ,
help = " enable use of auto-hinter " )
parser . add_option ( " " , " --control-files " , action = " store_true " , dest = " control_files " , default = False ,
parser . add_option ( " " , " --control-files " , action = " store_true " , dest = " control_files " , default = False ,
help = " enable control files generation " )
help = " enable control files generation " )
parser . add_option ( " " , " --nuninst-cache " , action = " store_true " , dest = " nuninst_cache " , default = False ,
parser . add_option ( " " , " --nuninst-cache " , action = " store_true " , dest = " nuninst_cache " , default = False ,
@ -1807,7 +1803,7 @@ class Britney:
for p in bins :
for p in bins :
binary , parch = p . split ( " / " )
binary , parch = p . split ( " / " )
# if a smooth update is possible for the package, skip it
# if a smooth update is possible for the package, skip it
if not self . options . compatible and item . suite == ' unstable ' and \
if item . suite == ' unstable ' and \
binary not in self . binaries [ item . suite ] [ parch ] [ 0 ] and \
binary not in self . binaries [ item . suite ] [ parch ] [ 0 ] and \
( ' ALL ' in self . options . smooth_updates or \
( ' ALL ' in self . options . smooth_updates or \
binaries [ parch ] [ 0 ] [ binary ] [ SECTION ] in self . options . smooth_updates ) :
binaries [ parch ] [ 0 ] [ binary ] [ SECTION ] in self . options . smooth_updates ) :
@ -2009,7 +2005,6 @@ class Britney:
new_arches = self . options . new_arches . split ( )
new_arches = self . options . new_arches . split ( )
break_arches = self . options . break_arches . split ( )
break_arches = self . options . break_arches . split ( )
dependencies = self . dependencies
dependencies = self . dependencies
compatible = self . options . compatible
# pre-process a hint batch
# pre-process a hint batch
pre_process = { }
pre_process = { }
@ -2027,14 +2022,14 @@ class Britney:
pkg = packages . pop ( 0 )
pkg = packages . pop ( 0 )
# this is the marker for the first loop
# this is the marker for the first loop
if not compatible and not mark_passed and position < 0 :
if not mark_passed and position < 0 :
mark_passed = True
mark_passed = True
packages . extend ( deferred )
packages . extend ( deferred )
del deferred
del deferred
else : position - = 1
else : position - = 1
# defer packages if their dependency has been already skipped
# defer packages if their dependency has been already skipped
if not compatible and not mark_passed:
if not mark_passed:
defer = False
defer = False
for p in dependencies . get ( pkg , [ ] ) :
for p in dependencies . get ( pkg , [ ] ) :
if p in skipped :
if p in skipped :
@ -2256,7 +2251,6 @@ class Britney:
self . upgrade_me = sorted ( extra )
self . upgrade_me = sorted ( extra )
else :
else :
self . upgrade_me = [ x for x in self . upgrade_me if x not in selected ]
self . upgrade_me = [ x for x in self . upgrade_me if x not in selected ]
if not self . options . compatible :
self . sort_actions ( )
self . sort_actions ( )
else :
else :
self . output_write ( " FAILED \n " )
self . output_write ( " FAILED \n " )
@ -2398,11 +2392,9 @@ class Britney:
hintcnt + = 1
hintcnt + = 1
# run the auto hinter
# run the auto hinter
if not self . options . compatible or self . options . autohinter :
self . auto_hinter ( )
self . auto_hinter ( )
# obsolete source packages
# obsolete source packages
if not self . options . compatible :
self . __log ( " > Removing obsolete source packages from testing " , type = " I " )
self . __log ( " > Removing obsolete source packages from testing " , type = " I " )
removals = [ ]
removals = [ ]
sources = self . sources [ ' testing ' ]
sources = self . sources [ ' testing ' ]
@ -2413,7 +2405,7 @@ class Britney:
self . do_all ( actions = removals )
self . do_all ( actions = removals )
# smooth updates
# smooth updates
if not self . options . compatible and len ( self . options . smooth_updates ) > 0 :
if len ( self . options . smooth_updates ) > 0 :
self . __log ( " > Removing old packages left in testing from smooth updates " , type = " I " )
self . __log ( " > Removing old packages left in testing from smooth updates " , type = " I " )
removals = self . old_libraries ( )
removals = self . old_libraries ( )
if len ( removals ) > 0 :
if len ( removals ) > 0 :
@ -2424,7 +2416,6 @@ class Britney:
else :
else :
removals = ( )
removals = ( )
if not self . options . compatible :
self . output_write ( " List of old libraries in testing ( %d ): \n %s " % \
self . output_write ( " List of old libraries in testing ( %d ): \n %s " % \
( len ( removals ) , self . old_libraries_format ( removals ) ) )
( len ( removals ) , self . old_libraries_format ( removals ) ) )
@ -2776,7 +2767,6 @@ class Britney:
# if no actions are provided, build the excuses and sort them
# if no actions are provided, build the excuses and sort them
elif not self . options . actions :
elif not self . options . actions :
self . write_excuses ( )
self . write_excuses ( )
if not self . options . compatible :
self . sort_actions ( )
self . sort_actions ( )
# otherwise, use the actions provided by the command line
# otherwise, use the actions provided by the command line
else :
else :