def load_from_tree(name, version, release, arch, package_type, path):
 distro_def = DistroDef(name, version, release, arch)
 loader_class = DISTRO_PKG_INFO_LOADERS.get(package_type, None)
 if (loader_class is not None):
  loader = loader_class(path)
  distro_def.software_packages = [SoftwarePackage(*args) for args in loader.get_packages_info()]
  distro_def.software_packages_type = package_type
 return distro_def

def load_from_tree ( name , version , release , arch , package_type , path ) : distro_def = DistroDef ( name , version , release , arch ) loader_class = DISTRO_PKG_INFO_LOADERS . get ( package_type , None ) if ( loader_class is not None ) : loader = loader_class ( path ) distro_def . software_packages = [ SoftwarePackage ( * args ) for args in loader . get_packages_info ( ) ] distro_def . software_packages_type = package_type return distro_def
loads a distrodef from an installable tree .