aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-07-15 16:53:28 +0000
committerFrancois Pons <fpons@mandriva.com>2002-07-15 16:53:28 +0000
commit8193e28941e92205df8d1502594b1b030c8cc27b (patch)
tree9c4c0b728822c99f2a7bc4057efb13577c7e03b1 /URPM.xs
parent8414339f861f1289bdc8cd191a765e8dec195582 (diff)
downloadperl-URPM-8193e28941e92205df8d1502594b1b030c8cc27b.tar
perl-URPM-8193e28941e92205df8d1502594b1b030c8cc27b.tar.gz
perl-URPM-8193e28941e92205df8d1502594b1b030c8cc27b.tar.bz2
perl-URPM-8193e28941e92205df8d1502594b1b030c8cc27b.tar.xz
perl-URPM-8193e28941e92205df8d1502594b1b030c8cc27b.zip
0.10-1mdk0.10
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs8
1 files changed, 8 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index a7165bc..fa7c6ba 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1590,6 +1590,14 @@ Pkg_flag_selected(pkg)
RETVAL
int
+Pkg_flag_available(pkg)
+ URPM::Package pkg
+ CODE:
+ RETVAL = pkg->flag & FLAG_INSTALLED || (pkg->flag & FLAG_UPGRADE ? pkg->flag & (FLAG_REQUESTED | FLAG_REQUIRED) : 0);
+ OUTPUT:
+ RETVAL
+
+int
Pkg_rate(pkg)
URPM::Package pkg
CODE: