aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-13 18:43:50 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-13 18:43:50 +0000
commit3d230ea495ea95b855ad736957a83620d6b58182 (patch)
treee58723d0d2d927731d04664e81aea4ff5a236829
parenta1aca896446d2aa929d782822c4d6c79c1c34634 (diff)
downloadperl-URPM-3d230ea495ea95b855ad736957a83620d6b58182.tar
perl-URPM-3d230ea495ea95b855ad736957a83620d6b58182.tar.gz
perl-URPM-3d230ea495ea95b855ad736957a83620d6b58182.tar.bz2
perl-URPM-3d230ea495ea95b855ad736957a83620d6b58182.tar.xz
perl-URPM-3d230ea495ea95b855ad736957a83620d6b58182.zip
(return_list_tag) report about unknown tags (also silent compiler btw)
-rw-r--r--URPM.xs3
1 files changed, 3 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index a60ea67..417c39d 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -619,6 +619,9 @@ return_list_tag(URPM__Package pkg, rpmTag tag_name) {
case RPMTAG_SUMMARY:
mXPUSHs(newSVpv(pkg->summary, 0));
break;
+ default:
+ croak("unexpected tag %s", tag_name);
+ break;
}
}
PUTBACK;