chiark / gitweb /
In access_quirk, filter by defined at the end. (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 2 Nov 2014 16:10:51 +0000 (16:10 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Nov 2014 16:26:02 +0000 (16:26 +0000)
dgit

diff --git a/dgit b/dgit
index 5f88625..57159b7 100755 (executable)
--- 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 (@) {