Lines Matching refs:RPM

35 # RPM packages to find potential differences of ABI. This is really useful for
36 # Fedora packagers and developers. Usually, excpet the RPM packages built
37 # locally, if a packager wants to compare RPM packages he just built with
38 # specific RPM packages that were already built and availabe in Koji,
42 # fedabipkgdiff which RPM packages he wants to compare, then fedabipkgdiff will
64 # The working directory where to hold all data including downloaded RPM
98 # compare. It's a dict representing the RPM we are interested in.
137 """RPM is not found"""
211 """Return if a file is a RPM"""
273 print('DRY-RUN: Delete cached downloaded RPM packages at {0}'.format(download_dir))
275 logger.debug('Delete cached downloaded RPM packages at {0}'.format(download_dir))
279 class RPM(object):
280 """Wrapper around an RPM descriptor received from Koji
282 The RPM descriptor that is returned from Koji XMLRPC API is a
288 """Initialize a RPM object
290 :param dict rpm_info: a dict representing an RPM descriptor
296 """Return the string representation of this RPM
298 Return the string representation of RPM information returned from Koji
299 directly so that RPM can be treated in same way.
304 """Access RPM information in the way of object.property
307 :raises AttributeError: if name is not one of keys of RPM information.
333 """Return a RPM's N-V-R-A representation
342 """Return a RPM file name
350 """Check if the name of the current RPM denotes a debug info package"""
355 """Check if the name of current RPM denotes a development package"""
360 """Get the URL from where to download this RPM"""
373 """Check if this RPM was already downloaded to local disk"""
377 class LocalRPM(RPM):
378 """Representing a local RPM
380 Local RPM means the one that could be already downloaded or built from
385 """Initialize local RPM with a filename
387 :param str filename: a filename pointing to a RPM file in local
395 """Return filename of this RPM
397 Returned filename is just the one passed when initializing this RPM.
399 :return: filename of this RPM
409 """Search an RPM from the directory of the current instance of LocalRPM
414 no RPM was found.
422 """Find debuginfo RPM package from a directory"""
446 For a given architecture, a set of RPMs is made of one RPM and its
447 ancillary RPMs. An ancillary RPM is either a debuginfo RPM or a
448 devel RPM.
462 # map; that is the RPM to consider and its ancillary RPMs.
478 """Gather RPM collection from local directory"""
506 'put an RPM and its ancillary debuginfo and '
515 """Add a RPM into this collection"""
580 to a given RPM.
582 :param: dict rpm_info a dict representing an RPM. This was
584 :return: a list of dicts containing RPM descriptors (dicts)
597 """Iterate RPM collection and peer's to generate comparison halves"""
609 logger.warning('Peer RPM of {0} is not found.'.format(_rpm.filename))
668 changing each RPM information.
670 A RPM returned from listRPMs contains following keys:
692 :param selector: called to determine if a RPM should be selected and
694 object and accepts one parameter of a RPM.
708 """Get a RPM from koji
713 When not found a RPM, koji.getRPM will return None, then
724 :return: a map containing RPM information, that contains same keys as
727 :raises RpmNotFound: if a RPM cannot be found with rpminfo.
731 raise RpmNotFound('Cannot find RPM {0}'.format(rpminfo))
827 """Get build ID that contains a RPM with specific nvra
829 If arch is not omitted, a RPM can be identified by its N-V-R-A.
845 :return: id of the build from where the RPM is built
925 By default, fedabipkgdiff requires the RPM package, as well as
955 return RPMCollection((RPM(rpm_info) for rpm_info in rpm_infos))
998 """Using curl to download a RPM from Koji
1003 :param str url: URL of a RPM to download.
1004 :return: True if a RPM is downloaded successfully, False otherwise.
1060 :param: list debuginfo_list a list of instances of the RPM class
1065 concatenate the 'option' parameter before the path to each RPM
1078 """Run abipkgdiff against found two RPM packages
1405 """Diff two RPM files"""
1419 description='Compare ABI of shared libraries in RPM packages from the '
1425 help='RPM package N-V-R, N-V-R-A, N, or local RPM '
1488 help='URL for RPM files access')