fix closedir calls

This commit is contained in:
Johannes 'josch' Schauer 2020-08-18 09:35:56 +02:00
parent 05d8b5f253
commit 501e29fdeb
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -1911,7 +1911,7 @@ sub run_download() {
}
push @essential_pkgs, $deb;
}
close $dh;
closedir $dh;
if (scalar @essential_pkgs == 0) {
# check if a file:// URI was used
@ -2398,7 +2398,7 @@ sub run_install() {
}
push @debs_to_install, $deb;
}
close $dh;
closedir $dh;
if (scalar @debs_to_install == 0) {
warning "nothing got downloaded -- maybe the packages"
. " were already installed?";
@ -4071,6 +4071,7 @@ sub main() {
push @keyringopts, '--keyring',
"$options->{apttrustedparts}/$filename";
}
closedir $dh;
if (-e $options->{apttrusted}) {
push @keyringopts, '--keyring', $options->{apttrusted};
}