Author: Ralf Treinen <treinen@debian.org>
Description: fix distcheck handling of --fg and --bg arguments
Debian-bug: #830957
Upstream-commit: 0b73c05b71b0c37099b12e306b1e5b5c3966728c

diff --git a/applications/distcheck.ml b/applications/distcheck.ml
index 48c323f..cd5829b 100644
--- a/applications/distcheck.ml
+++ b/applications/distcheck.ml
@@ -133,7 +133,7 @@ let main () =
         fatal "Cannot find any package corresponding to the selector %s" 
         (Util.string_of_list ~sep:", " Pef.Printer.string_of_vpkg co)
       |l -> l
-    end else if bg_pkglist = [] then fg_pkglist else []
+    end else fg_pkglist
   in
 
   let coinstlist = 
