• Home
  • Raw
  • Download

Lines Matching refs:rpm

29 import rpm
240 return rpm.labelCompare(
346 return os.path.basename(pathinfo.rpm(self.rpm_info))
362 return os.path.join(pathinfo.build(build), pathinfo.rpm(self.rpm_info))
368 filename = os.path.basename(pathinfo.rpm(self.rpm_info))
473 for rpm in rpms:
474 self.add(rpm)
488 selector = lambda rpm: True argument
490 selector = lambda rpm: local_rpm.is_devel or \ argument
514 def add(self, rpm): argument
516 self.rpms.setdefault(rpm.arch, []).append(rpm)
520 if rpm.is_debuginfo:
522 rpm.arch, devel_debuginfo_default)['debuginfo'] = rpm
524 if rpm.is_devel:
526 rpm.arch, devel_debuginfo_default)['devel'] = rpm
536 def get_sibling_debuginfo(self, rpm): argument
546 if rpm.arch not in self.ancillary_rpms:
548 return self.ancillary_rpms[rpm.arch].get('debuginfo')
550 def get_matching_debuginfo(self, rpm): argument
552 all_debuginfo_list = self.get_all_debuginfo_rpms(rpm)
555 if d.name == '{0}-debuginfo'.format(rpm.name):
559 debuginfo_pkg = self.get_sibling_debuginfo(rpm)
563 def get_sibling_devel(self, rpm): argument
565 if rpm.arch not in self.ancillary_rpms:
567 return self.ancillary_rpms[rpm.arch].get('devel')
569 def get_peer_rpm(self, rpm): argument
571 if rpm.arch not in self.rpms:
573 for _rpm in self.rpms[rpm.arch]:
574 if _rpm.is_peer(rpm):
703 rpms = [rpm for rpm in rpms if selector(rpm)]
729 rpm = self.session.getRPM(rpminfo)
730 if rpm is None:
732 return rpm
862 rpm = self.getRPM({'name': name,
867 return rpm['build_id']
942 return lambda rpm: \
943 rpm['arch'] not in excluded_arches and \
944 (rpm['name'] == package_name or
945 rpm['name'].endswith('-debuginfo') or
946 rpm['name'].endswith('-devel'))
949 selector = lambda rpm: rpm['arch'] not in excluded_arches argument
1027 def _download(rpm): argument
1028 if rpm.is_downloaded:
1029 logger.debug('Reuse %s', rpm.downloaded_file)
1031 logger.debug('Download %s', rpm.download_url)
1032 download_rpm(rpm.download_url)
1034 for rpm in rpms:
1035 _download(rpm)