Exemplo n.º 1
0
 def _get_rpms(cls, rpm_list):
     rpm_dict = {}
     for rpm_name in rpm_list:
         rpm_dict[RpmHelper.get_header_from_rpm(rpm_name).name] = rpm_name
     return rpm_dict
Exemplo n.º 2
0
 def _get_rpm_info(cls, name, packages):
     if packages is None:
         return None
     basic_package = sorted(packages)[0]
     return getattr(RpmHelper.get_header_from_rpm(basic_package), name)