diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-10-26 22:49:14 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-10-26 22:54:46 +0100 |
commit | 3f34635ec12cdc94f1e088f37471063882fadc95 (patch) | |
tree | eaa0f0b456264d10587d9a9e7407baa82f788c2e | |
parent | a44ec308cf4783eb3bd0a0af8b84fa1f10ea38f4 (diff) | |
download | perl-URPM-3f34635ec12cdc94f1e088f37471063882fadc95.tar perl-URPM-3f34635ec12cdc94f1e088f37471063882fadc95.tar.gz perl-URPM-3f34635ec12cdc94f1e088f37471063882fadc95.tar.bz2 perl-URPM-3f34635ec12cdc94f1e088f37471063882fadc95.tar.xz perl-URPM-3f34635ec12cdc94f1e088f37471063882fadc95.zip |
add >recommends method (mga#14376)
unlike recommends_nosense, it returns version too
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | URPM.pm | 2 | ||||
-rw-r--r-- | URPM.xs | 2 |
3 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,5 @@ +- add >recommends method (mga#14376) + Version 5.01 - 23 October 2014 - fix crashing in pthread when using log callback with rpm-4.12 (mga#14172) @@ -765,6 +765,8 @@ Just the provided package name. =item $package->requires() +=item $package->recommends() + Full requires tags =item $package->requires_nosense() @@ -1842,6 +1842,7 @@ Pkg_obsoletes(pkg) conflicts = 1 provides = 2 requires = 3 + recommends= 4 PPCODE: PUTBACK; rpmTag tag, flags, tag_version; @@ -1850,6 +1851,7 @@ Pkg_obsoletes(pkg) case 1: tag = RPMTAG_CONFLICTNAME; s = pkg->conflicts; flags = RPMTAG_CONFLICTFLAGS; tag_version = RPMTAG_CONFLICTVERSION; break; case 2: tag = RPMTAG_PROVIDENAME; s = pkg->provides; flags = RPMTAG_PROVIDEFLAGS; tag_version = RPMTAG_PROVIDEVERSION; break; case 3: tag = RPMTAG_REQUIRENAME; s = pkg->requires; flags = RPMTAG_REQUIREFLAGS; tag_version = RPMTAG_REQUIREVERSION; break; + case 4: tag = RPMTAG_RECOMMENDNAME;s = pkg->recommends;flags = RPMTAG_RECOMMENDFLAGS;tag_version = RPMTAG_RECOMMENDVERSION;break; default: tag = RPMTAG_OBSOLETENAME; s = pkg->obsoletes; flags = RPMTAG_OBSOLETEFLAGS; tag_version = RPMTAG_OBSOLETEVERSION; break; } return_list_str(s, pkg->h, tag, flags, tag_version, callback_list_str_xpush, NULL); |