aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-07-19 08:50:44 +0000
committerFrancois Pons <fpons@mandriva.com>2002-07-19 08:50:44 +0000
commit9cdf4f302bcee100b4cd8492b0af1765772cc44b (patch)
treee6c6d58da6cf4a7a4d14ab8ab1243e94a61a5cd1 /URPM.xs
parentb1639a0fc334d819296162dcd642fb5c0a25d899 (diff)
downloadperl-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.xs5
1 files changed, 4 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index bc8b9cf..36bbe44 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -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"))