def update_installed_list(op, package):
 if (op == 'i'):
  installed_packages_list[package.name] = package
 elif (op == 'r'):
  del installed_packages_list[package.name]
 else:
  raise RuntimeError(("[cf] fatal: invalid configuration op '%s'." % op))
 write_installed_packages_list()

def update_installed_list ( op , package ) : if ( op == 'i' ) : installed_packages_list [ package . name ] = package elif ( op == 'r' ) : del installed_packages_list [ package . name ] else : raise RuntimeError ( ( "[cf] fatal: invalid configuration op '%s'." % op ) ) write_installed_packages_list ( )
updates the internal list of installed packages .