aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-08 18:49:52 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-08 18:49:52 +0000
commitf79a3a4205864e545fd814c382bc164795659de9 (patch)
tree02917f21b246f0680213fc6d5f106f297dcb4ff7
parentad4bc8ec23359c369cdf51c20eab1a8c226b1db3 (diff)
downloadperl-URPM-f79a3a4205864e545fd814c382bc164795659de9.tar
perl-URPM-f79a3a4205864e545fd814c382bc164795659de9.tar.gz
perl-URPM-f79a3a4205864e545fd814c382bc164795659de9.tar.bz2
perl-URPM-f79a3a4205864e545fd814c382bc164795659de9.tar.xz
perl-URPM-f79a3a4205864e545fd814c382bc164795659de9.zip
(update_header, add, parse_hdlist__XS, parse_rpm) kill compatability
mode with an interface dead since December 2002
-rw-r--r--URPM.xs20
1 files changed, 4 insertions, 16 deletions
diff --git a/URPM.xs b/URPM.xs
index 906326f..b457e9b 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2328,10 +2328,7 @@ Pkg_update_header(pkg, filename, ...)
int packing = 0;
int keep_all_tags = 0;
CODE:
- /* compability mode with older interface of parse_hdlist */
- if (items == 3)
- packing = SvIV(ST(2));
- else if (items > 3) {
+ if (items > 3) {
int i;
for (i = 2; i < items-1; i+=2) {
STRLEN len;
@@ -2924,10 +2921,7 @@ Trans_add(trans, pkg, ...)
if ((pkg->flag & FLAG_ID) <= FLAG_ID_MAX && pkg->h != NULL) {
int update = 0;
rpmRelocation *relocations = NULL;
- /* compability mode with older interface of add */
- if (items == 3)
- update = SvIV(ST(2));
- else if (items > 3) {
+ if (items > 3) {
int i;
for (i = 2; i < items-1; i+=2) {
STRLEN len;
@@ -3389,10 +3383,7 @@ Urpm_parse_hdlist__XS(urpm, filename, ...)
int packing = 0;
SV *callback = NULL;
- /* compability mode with older interface of parse_hdlist */
- if (items == 3)
- packing = SvTRUE(ST(2));
- else if (items > 3) {
+ if (items > 3) {
int i;
for (i = 2; i < items-1; i+=2) {
STRLEN len;
@@ -3467,10 +3458,7 @@ Urpm_parse_rpm(urpm, filename, ...)
SV *callback = NULL;
rpmVSFlags vsflags = RPMVSF_DEFAULT;
- /* compability mode with older interface of parse_hdlist */
- if (items == 3)
- packing = SvTRUE(ST(2));
- else if (items > 3) {
+ if (items > 3) {
int i;
for (i = 2; i < items-1; i+=2) {
STRLEN len;