From: Ian Jackson Date: Sun, 2 Nov 2014 16:10:51 +0000 (+0000) Subject: In access_quirk, filter by defined at the end. (nfc) X-Git-Tag: debian/0.30~305 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=25668656cea95fdbf219cb51c0b657d188b7077e;hp=c683c8f8e7b9e917b68ed02bd584a505b1636734 In access_quirk, filter by defined at the end. (nfc) --- diff --git a/dgit b/dgit index 5f88625d..57159b70 100755 --- a/dgit +++ b/dgit @@ -601,9 +601,8 @@ sub access_distros () { my @l = access_basedistro(); my (undef,$quirkdistro) = access_quirk(); - unshift @l, $quirkdistro if defined $quirkdistro; - - return @l; + unshift @l, $quirkdistro; + return grep { defined } @l; } sub access_cfg (@) {