From 26af846d0ae4a14a9946a2e9b6d1ae17c31ebdf8 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Mon, 23 May 2022 23:30:29 +0200 Subject: [PATCH] fix that cached debs were not returned if there was nothing to download --- mmdebstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmdebstrap b/mmdebstrap index ff5b597..2482eba 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -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} }) {