]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_compress
r102: Initial Import
[debhelper.git] / dh_compress
index d24a561aec7b7a97c15e704995743908c673c57f..7d6e4979ade9cef8456959980e5ded3e035e386e 100755 (executable)
@@ -13,7 +13,7 @@ filelist () {
        if [ "$compress" ]; then
                # The config file is a sh script that outputs the files to be compressed
                # (typically using find).
-               sh $olddir/$compress 2>/dev/null
+               sh $olddir/$compress 2>/dev/null || true
        else
                # By default fall back on what the policy manual says to compress.
                find usr/info usr/man usr/X11*/man -type f ! -name "*.gz" 2>/dev/null || true
@@ -28,8 +28,8 @@ filelist () {
 # Call only if DH_EXCLUDE_GREP is non-empty.
 filelist_excluded () {
        # Use grep -F so we don't have to worry about regexp's.
-       filelist | grep -v -F \
-               "`echo "$DH_EXCLUDE_GREP" | tr "|" "\n"`"
+       (filelist | grep -v -F \
+               "`echo "$DH_EXCLUDE_GREP" | tr "|" "\n"`") || true
 }
 
 for PACKAGE in $DH_DOPACKAGES; do