51
60
# case 1: file found in .diff.gz
52
61
if ! grep -q '^@@ -0,0 ' "$WORKDIR/patch" ; then
53
62
# case 1a: patch requires original file
55
64
ORIGTGZ=$(echo "$ORIGTGZ" | cut -d ' ' -f 4 | head -n 1)
60
66
test -e "$DSCDIR/$ORIGTGZ" || die "$DSCDIR/$ORIGTGZ not found"
62
68
test -s "$WORKDIR/output" || die "$FILE not found in $DSCDIR/$ORIGTGZ, but required by patch"
64
70
patch --silent "$WORKDIR/output" < "$WORKDIR/patch"