diff options
author | Francois Pons <fpons@mandriva.com> | 2002-12-06 15:15:13 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-12-06 15:15:13 +0000 |
commit | 60d4ad6c90817f674088bf32302c575b7b5129f2 (patch) | |
tree | 4b6615e0d16757d4d8101e1449a441b1168c4081 /urpm.pm | |
parent | 6df583d5c4a24b38545e8ee8fd26d19b7ff6b728 (diff) | |
download | urpmi-60d4ad6c90817f674088bf32302c575b7b5129f2.tar urpmi-60d4ad6c90817f674088bf32302c575b7b5129f2.tar.gz urpmi-60d4ad6c90817f674088bf32302c575b7b5129f2.tar.bz2 urpmi-60d4ad6c90817f674088bf32302c575b7b5129f2.tar.xz urpmi-60d4ad6c90817f674088bf32302c575b7b5129f2.zip |
4.1-9mdk
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -620,17 +620,16 @@ sub configure { if ($options{callback}) { if (-s "$urpm->{statedir}/$_->{hdlist}" > 32) { $urpm->{log}(_("examining hdlist file [%s]", "$urpm->{statedir}/$_->{hdlist}")); - eval { ($_->{start}, $_->{end}) = $urpm->parse_hdlist("$urpm->{statedir}/$_->{hdlist}", 0) }; + eval { ($_->{start}, $_->{end}) = $urpm->parse_hdlist("$urpm->{statedir}/$_->{hdlist}", + packing => 1, callback => $options{callback}) }; + } elsif (-s "$urpm->{statedir}/synthesis.$_->{hdlist}" > 32) { + $urpm->{log}(_("examining synthesis file [%s]", "$urpm->{statedir}/synthesis.$_->{hdlist}")); + eval { ($_->{start}, $_->{end}) = $urpm->parse_synthesis("$urpm->{statedir}/synthesis.$_->{hdlist}", + callback => $options{callback}) }; } unless (defined $_->{start} && defined $_->{end}) { $urpm->{error}(_("problem reading hdlist file of medium \"%s\"", $_->{name})); $_->{ignore} = 1; - } else { - #- medium has been read correclty, now call the callback for each packages. - #- it is the responsability of callback to pack the header. - foreach ($_->{start} .. $_->{end}) { - $options{callback}->($urpm, $_, %options); - } } } else { if (-s "$urpm->{statedir}/synthesis.$_->{hdlist}" > 32) { |