diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-09-14 01:56:02 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-09-14 01:56:02 +0000 |
commit | 742223d1775b04904c9571e442fba79d5c992404 (patch) | |
tree | 2390057766f883de52366a48ce17bec7fa922660 | |
parent | 3eb87f54eb456ac7ae2625907cd13dedb152930d (diff) | |
download | urpmi-742223d1775b04904c9571e442fba79d5c992404.tar urpmi-742223d1775b04904c9571e442fba79d5c992404.tar.gz urpmi-742223d1775b04904c9571e442fba79d5c992404.tar.bz2 urpmi-742223d1775b04904c9571e442fba79d5c992404.tar.xz urpmi-742223d1775b04904c9571e442fba79d5c992404.zip |
Don't print the urpmf results twice when using virtual media with hdlists.
-rw-r--r-- | urpm.pm | 6 | ||||
-rwxr-xr-x | urpmf | 1 |
2 files changed, 4 insertions, 3 deletions
@@ -491,13 +491,13 @@ sub configure { "$path/$_->{with_hdlist}", callback => $options{callback}); } else { $urpm->{log}(N("examining hdlist file [%s]", "$path/$_->{with_hdlist}")); + #- we'll need a second pass + defined $second_pass or $second_pass = 1; ($_->{start}, $_->{end}) = $urpm->parse_hdlist( "$path/$_->{with_hdlist}", packing => 1, - callback => $options{callback}, + callback => $options{call_back_only_once} && $second_pass ? undef : $options{callback}, ); - #- we need a second pass now. - defined $second_pass or $second_pass = 1; } } else { $urpm->{error}(N("virtual medium \"%s\" is not local, medium ignored", $_->{name})); @@ -138,6 +138,7 @@ $urpm->configure( synthesis => $synthesis, update => $update, callback => $callback, + call_back_only_once => 1, hdlist => $use_hdlist, ); $urpm->unlock_urpmi_db; |