aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-11 09:37:16 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-11 09:37:16 +0000
commit16fc1c8c0ec5fca292a3d9241e4a3e5ea898ca5f (patch)
treeeaefd1a58d0a3f16495d305ad263dda11f13e122
parentc4790a507707000ba7e0016c0fff6a4cdb363ef7 (diff)
downloadperl-URPM-16fc1c8c0ec5fca292a3d9241e4a3e5ea898ca5f.tar
perl-URPM-16fc1c8c0ec5fca292a3d9241e4a3e5ea898ca5f.tar.gz
perl-URPM-16fc1c8c0ec5fca292a3d9241e4a3e5ea898ca5f.tar.bz2
perl-URPM-16fc1c8c0ec5fca292a3d9241e4a3e5ea898ca5f.tar.xz
perl-URPM-16fc1c8c0ec5fca292a3d9241e4a3e5ea898ca5f.zip
final commit for rpm.org HEAD compliance
-rw-r--r--URPM.xs9
1 files changed, 8 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index 5a6e3ac..062ac02 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -702,10 +702,17 @@ void
return_problems(rpmps ps, int translate_message) {
dSP;
if (ps && rpmpsNumProblems(ps) > 0) {
+#ifdef RPM_ORG
+ rpmpsi iterator = rpmpsInitIterator(ps);
+ rpmpsFreeIterator(iterator);
+ while (rpmpsNextIterator(iterator)) {
+ rpmProblem p = rpmpsGetProblem(iterator);
+#else
int i;
for (i = 0; i < rpmpsNumProblems(ps); i++) {
rpmProblem p = ps->probs + i;
+#endif
if (translate_message) {
/* translate error using rpm localization */
@@ -3683,7 +3690,7 @@ Urpm_import_pubkey_file(db, filename)
RETVAL = 0;
} else if (rc != PGPARMOR_PUBKEY) {
RETVAL = 0;
- } else if (rpmcliImportPubkey(ts, pkt, pktlen) != RPMRC_OK) {
+ } else if (rpmtsImportPubkey(ts, pkt, pktlen) != RPMRC_OK) {
RETVAL = 0;
} else {
RETVAL = 1;