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
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)