aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2004-04-21 09:25:54 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2004-04-21 09:25:54 +0000
commita1aa75d585d82aa9823a81408e4dc79f470d7069 (patch)
treeb49df8d0b3e70ce4e55512523441b402ac4213ed /URPM.xs
parenta285a909e44e449692b7390ef3449b04281ff812 (diff)
downloadperl-URPM-a1aa75d585d82aa9823a81408e4dc79f470d7069.tar
perl-URPM-a1aa75d585d82aa9823a81408e4dc79f470d7069.tar.gz
perl-URPM-a1aa75d585d82aa9823a81408e4dc79f470d7069.tar.bz2
perl-URPM-a1aa75d585d82aa9823a81408e4dc79f470d7069.tar.xz
perl-URPM-a1aa75d585d82aa9823a81408e4dc79f470d7069.zip
- add list_rpm_tag function
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs11
1 files changed, 11 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 674ac8c..98e87d5 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -3163,6 +3163,17 @@ Urpm_read_config_files()
CODE:
read_config_files(1); /* force re-read of configuration files */
+void
+Urpm_list_rpm_tag()
+ PREINIT:
+ int i = 0;
+ PPCODE:
+ read_config_files(0);
+ for (i = 0; i < rpmTagTableSize; i++) {
+ XPUSHs(sv_2mortal(newSVpv(rpmTagTable[i].name, 0)));
+ XPUSHs(sv_2mortal(newSViv(rpmTagTable[i].val)));
+ }
+
int
Urpm_ranges_overlap(a, b, b_nopromote=0)
char *a