diff options
author | Francois Pons <fpons@mandriva.com> | 2002-07-19 08:50:44 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-07-19 08:50:44 +0000 |
commit | 9cdf4f302bcee100b4cd8492b0af1765772cc44b (patch) | |
tree | e6c6d58da6cf4a7a4d14ab8ab1243e94a61a5cd1 /URPM.xs | |
parent | b1639a0fc334d819296162dcd642fb5c0a25d899 (diff) | |
download | perl-URPM-9cdf4f302bcee100b4cd8492b0af1765772cc44b.tar perl-URPM-9cdf4f302bcee100b4cd8492b0af1765772cc44b.tar.gz perl-URPM-9cdf4f302bcee100b4cd8492b0af1765772cc44b.tar.bz2 perl-URPM-9cdf4f302bcee100b4cd8492b0af1765772cc44b.tar.xz perl-URPM-9cdf4f302bcee100b4cd8492b0af1765772cc44b.zip |
0.11-1mdk
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1593,7 +1593,8 @@ int Pkg_flag_available(pkg) URPM::Package pkg CODE: - RETVAL = pkg->flag & FLAG_INSTALLED || (pkg->flag & FLAG_UPGRADE ? pkg->flag & (FLAG_BASE | FLAG_REQUESTED | FLAG_REQUIRED) : 0); + RETVAL = (pkg->flag & FLAG_INSTALLED && !(pkg->flag & FLAG_UPGRADE)) || + (pkg->flag & FLAG_UPGRADE ? pkg->flag & (FLAG_BASE | FLAG_REQUESTED | FLAG_REQUIRED) : 0); OUTPUT: RETVAL @@ -1774,6 +1775,8 @@ Db_traverse_tag(db,tag,names,callback) rpmtag = RPMTAG_PROVIDENAME; else if (!strcmp(tag, "whatrequires")) rpmtag = RPMTAG_REQUIRENAME; + else if (!strcmp(tag, "whatconflicts")) + rpmtag = RPMTAG_CONFLICTNAME; else if (!strcmp(tag, "group")) rpmtag = RPMTAG_GROUP; else if (!strcmp(tag, "triggeredby")) |