fix that cached debs were not returned if there was nothing to download

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-05-23 23:30:29 +02:00
parent df6900ec4a
commit 26af846d0a
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -2092,7 +2092,7 @@ sub run_download() {
if (any { $_ eq $options->{variant} } ('extract', 'custom')) {
if (scalar @{ $options->{include} } == 0) {
info "nothing to download -- skipping...";
return ([], []);
return ([], \@cached_debs);
}
my %pkgs_to_install;
for my $incl (@{ $options->{include} }) {