make_disc_trees: don't reopen the log over and over

This commit is contained in:
Julien Cristau 2019-01-23 23:34:01 +01:00
parent 6114c16dfc
commit 97dbce1c22
1 changed files with 1 additions and 0 deletions

View File

@ -935,6 +935,7 @@ sub msg_ap {
if (!$log_opened) { if (!$log_opened) {
open(AP_LOG, ">> $tdir/$codename/add_packages.log") open(AP_LOG, ">> $tdir/$codename/add_packages.log")
|| die "Can't write in $tdir/add_packages.log!\n"; || die "Can't write in $tdir/add_packages.log!\n";
$log_opened = 1;
} }
print AP_LOG @_; print AP_LOG @_;
} }