diff options
author | Olivier Thauvin <nanardon@mandriva.org> | 2004-04-21 09:25:54 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mandriva.org> | 2004-04-21 09:25:54 +0000 |
commit | a1aa75d585d82aa9823a81408e4dc79f470d7069 (patch) | |
tree | b49df8d0b3e70ce4e55512523441b402ac4213ed /URPM.xs | |
parent | a285a909e44e449692b7390ef3449b04281ff812 (diff) | |
download | perl-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.xs | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |