aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2003-05-30 11:32:58 +0000
committerFlorent Villard <warly@mandriva.com>2003-05-30 11:32:58 +0000
commitddab5a94172897d426cbfa97b78909f6ca46c17a (patch)
tree8ef529baf237898a496cc7c15fed244c1b88f925
parentf002e054e3f65987539ff4f4e4653b35c2ce96e4 (diff)
downloadperl-URPM-ddab5a94172897d426cbfa97b78909f6ca46c17a.tar
perl-URPM-ddab5a94172897d426cbfa97b78909f6ca46c17a.tar.gz
perl-URPM-ddab5a94172897d426cbfa97b78909f6ca46c17a.tar.bz2
perl-URPM-ddab5a94172897d426cbfa97b78909f6ca46c17a.tar.xz
perl-URPM-ddab5a94172897d426cbfa97b78909f6ca46c17a.zip
move packing and keep_all_tags declaration in Urpm_parse_rpm to the begining of the function in order to get the argument initialisation correctly working (otherwize they were overriden and systematically set to 0).
-rw-r--r--URPM.xs4
1 files changed, 2 insertions, 2 deletions
diff --git a/URPM.xs b/URPM.xs
index da34aeb..e449c4d 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2914,6 +2914,8 @@ void
Urpm_parse_rpm(urpm, filename, packing=0, keep_all_tags=0)
SV *urpm
char *filename
+ int packing;
+ int keep_all_tags;
PPCODE:
if (SvROK(urpm) && SvTYPE(SvRV(urpm)) == SVt_PVHV) {
SV **fdepslist = hv_fetch((HV*)SvRV(urpm), "depslist", 8, 0);
@@ -2923,8 +2925,6 @@ Urpm_parse_rpm(urpm, filename, packing=0, keep_all_tags=0)
if (depslist != NULL) {
struct s_Package pkg;
- int packing = 0;
- int keep_all_tags = 0;
SV *callback = NULL;
/* compability mode with older interface of parse_hdlist */