diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-06-08 18:49:52 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-06-08 18:49:52 +0000 |
commit | f79a3a4205864e545fd814c382bc164795659de9 (patch) | |
tree | 02917f21b246f0680213fc6d5f106f297dcb4ff7 | |
parent | ad4bc8ec23359c369cdf51c20eab1a8c226b1db3 (diff) | |
download | perl-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.xs | 20 |
1 files changed, 4 insertions, 16 deletions
@@ -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; |