diff options
author | Florent Villard <warly@mandriva.com> | 2003-05-30 11:32:58 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2003-05-30 11:32:58 +0000 |
commit | ddab5a94172897d426cbfa97b78909f6ca46c17a (patch) | |
tree | 8ef529baf237898a496cc7c15fed244c1b88f925 /URPM.xs | |
parent | f002e054e3f65987539ff4f4e4653b35c2ce96e4 (diff) | |
download | perl-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).
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |