Mercurial > hg > aboriginal
diff sources/functions.sh @ 973:cfeaae1c55ed
Allow patchdir to be overridden.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 05 Feb 2010 17:47:59 -0600 |
parents | bcab030a2394 |
children | 9840847885e8 |
line wrap: on
line diff
--- a/sources/functions.sh Fri Feb 05 10:33:06 2010 -0600 +++ b/sources/functions.sh Fri Feb 05 17:47:59 2010 -0600 @@ -227,7 +227,7 @@ SHALIST=$(cat "$SHA1FILE" 2> /dev/null) if [ ! -z "$SHALIST" ] then - for i in "$SHA1TAR" $(sha1file "${SOURCES}/patches/${PACKAGE}"-* 2>/dev/null) + for i in "$SHA1TAR" $(sha1file "$PATCHDIR/${PACKAGE}"-* 2>/dev/null) do # Is this sha1 in the file? if [ -z "$(echo "$SHALIST" | sed -n "s/$i/$i/p" )" ] @@ -263,7 +263,7 @@ # Apply any patches to this package - ls "${SOURCES}/patches/${PACKAGE}"-* 2> /dev/null | sort | while read i + ls "$PATCHDIR/${PACKAGE}"-* 2> /dev/null | sort | while read i do if [ -f "$i" ] then