summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/urpm.pm b/urpm.pm
index 332b0c86..b7090278 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -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}));