# HG changeset patch
# User Sean Farley <sean@farley.io>
# Date 2016-04-15 21:27:42
# Node ID 62c245c59433059c811d38acb6420ef67c97ff52
# Parent  a8256e3701be0de147ac71831b67e1fceb317c8e

builddeb: ignore errors about find not finding files

The debuild command may output less files than we explicitly list so let's not
error out if none exist.

diff --git a/contrib/builddeb b/contrib/builddeb
--- a/contrib/builddeb
+++ b/contrib/builddeb
@@ -84,7 +84,7 @@ if [ "$CLEANUP" ] ; then
     OUTPUTDIR=${OUTPUTDIR:=packages/$DISTID-$CODENAME}
     mkdir -p "$OUTPUTDIR"
     find ../mercurial*.deb ../mercurial_*.build ../mercurial_*.changes \
-          -type f -newer $control -print0 | \
+          -type f -newer $control -print0 2>/dev/null | \
       xargs -Inarf -0 mv narf "$OUTPUTDIR"
     echo "Built packages for $debver:"
     find "$OUTPUTDIR" -type f -newer $control -name '*.deb'