From b3e6081e1bdfa93adc1dc962de085754428fa7e4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 20 Aug 2015 13:52:26 +0100 Subject: [PATCH] Refactor coping with maybe-existing files in fake dsc --- dgit | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dgit b/dgit index 621288b7..2434f6a2 100755 --- a/dgit +++ b/dgit @@ -2808,8 +2808,9 @@ END } my @files=qw(debian/source/format debian/rules); - if (stat_exists '../../../debian/patches') { - push @files, 'debian/patches'; + foreach my $maybe (qw(debian/patches)) { + next unless stat_exists "../../../$maybe"; + push @files, $maybe; } my $debtar= srcfn $fakeversion,'.debian.tar.gz'; -- 2.30.2