def append_use_flags(atom, uses=None, overwrite=False):
 if (not uses):
  uses = portage.dep.dep_getusedeps(atom)
 if (len(uses) == 0):
  return
 atom = atom[:atom.rfind('[')]
 append_to_package_conf('use', atom=atom, flags=uses, overwrite=overwrite)

def append_use_flags ( atom , uses = None , overwrite = False ) : if ( not uses ) : uses = portage . dep . dep_getusedeps ( atom ) if ( len ( uses ) == 0 ) : return atom = atom [ : atom . rfind ( '[' ) ] append_to_package_conf ( 'use' , atom = atom , flags = uses , overwrite = overwrite )
append a list of use flags for a given package or depend atom cli example: .