]> git.ipfire.org Git - pakfire.git/commitdiff
patch: Don't break on unknwown files. Just skip them.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Dec 2011 10:31:36 +0000 (11:31 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Dec 2011 10:31:36 +0000 (11:31 +0100)
scripts/patch

index 32ddb390c3b65b71c4c643837f0d9aaaa9db20f6..927b8803aeccf86b6e59382e04b23a5bf948a8be 100755 (executable)
@@ -55,13 +55,9 @@ for patch in ${patches}; do
                        # Default is -p1.
                        options="${options} -p1"
                        ;;
-               *.off)
-                       # Ignore disabled patches.
-                       continue
-                       ;;
                *)
-                       echo >&2 "   ERROR: Unknown filetype: ${patch}"
-                       exit 1
+                       echo >&2 "   WARNING: Ignoring unknown file: ${patch}"
+                       continue
                        ;;
        esac