Lines Matching refs:Pkg
1929 def get_pkg_info(self, pkg):
1933 @type pkg: KojiPkgSpec
1934 @param pkg: information about the package, as a KojiPkgSpec instance
1939 if pkg.build is not None:
1940 info = self.session.getBuild(int(pkg.build))
1941 elif pkg.tag is not None and pkg.package is not None:
1942 builds = self.session.listTagged(pkg.tag,
1945 package=pkg.package)
1951 def is_pkg_valid(self, pkg):
1961 if pkg.build:
1962 if not self.is_pkg_spec_build_valid(pkg):
1964 elif pkg.tag:
1965 if not self.is_pkg_spec_tag_valid(pkg):
1972 def is_pkg_spec_build_valid(self, pkg):
1976 @param pkg: a Pkg instance
1978 if pkg.build is not None:
1979 info = self.session.getBuild(int(pkg.build))
1985 def is_pkg_spec_tag_valid(self, pkg):
1989 @type pkg: KojiPkgSpec
1990 @param pkg: a package specification
1992 if pkg.tag is not None:
1993 tag = self.session.getTag(pkg.tag)
1999 def get_pkg_rpm_info(self, pkg, arch=None):
2003 @type pkg: KojiPkgSpec
2004 @param pkg: a package specification
2012 info = self.get_pkg_info(pkg)
2016 if pkg.subpackages:
2017 rpms = [d for d in rpms if d['name'] in pkg.subpackages]
2021 def get_pkg_rpm_names(self, pkg, arch=None):
2023 Gets the names for the RPM packages specified in pkg
2025 @type pkg: KojiPkgSpec
2026 @param pkg: a package specification
2033 rpms = self.get_pkg_rpm_info(pkg, arch)
2037 def get_pkg_rpm_file_names(self, pkg, arch=None):
2039 Gets the file names for the RPM packages specified in pkg
2041 @type pkg: KojiPkgSpec
2042 @param pkg: a package specification
2050 rpms = self.get_pkg_rpm_info(pkg, arch)
2058 def get_pkg_urls(self, pkg, arch=None):
2060 Gets the urls for the packages specified in pkg
2062 @type pkg: KojiPkgSpec
2063 @param pkg: a package specification
2068 info = self.get_pkg_info(pkg)
2069 rpms = self.get_pkg_rpm_info(pkg, arch)
2081 def get_pkgs(self, pkg, dst_dir, arch=None):
2085 @type pkg: KojiPkgSpec
2086 @param pkg: a package specification
2094 rpm_urls = self.get_pkg_urls(pkg, arch)
2130 >>> pkg = KojiPkgSpec('1000')
2132 >>> pkg = KojiPkgSpec(build=1000)
2136 >>> pkg = KojiPkgSpec('1000:kernel,kernel-devel')
2138 >>> pkg = KojiPkgSpec(build=1000,
2143 >>> pkg = KojiPkgSpec('dist-f14:kernel')
2145 >>> pkg = KojiPkgSpec(tag='dist-f14', package='kernel')
2150 >>> pkg = KojiPkgSpec('kernel')
2152 >>> pkg = KojiPkgSpec(package='kernel')
2157 >>> pkg = KojiPkgSpec('kernel')
2159 >>> pkg = KojiPkgSpec(package='kernel')
2348 return ("<KojiPkgSpec tag=%s build=%s pkg=%s subpkgs=%s>" %
2920 Adds the current prefix to the list of paths that pkg-config searches
2924 a test run, we believe that having other pkg-config files (*.pc) in