scripts/unpack: use relative path for showing a patch file

from
APPLY PATCH (common)   /data/LibreELEC.tv/packages/audio/alsa-lib/patches/alsa-lib-USB_Soundblaster_HD.patch
to
APPLY PATCH (common)   packages/audio/alsa-lib/patches/alsa-lib-USB_Soundblaster_HD.patch
This commit is contained in:
Peter Vicman 2017-01-30 11:01:10 +01:00 committed by MilhouseVH
parent a39238432c
commit ab43d6e255

View File

@ -171,7 +171,7 @@ for i in $PKG_DIR/patches/$PKG_NAME-*.patch \
fi
if [ -f "$i" ]; then
printf "%${BUILD_INDENT}c ${boldgreen}APPLY PATCH${endcolor} ${boldwhite}${PATCH_DESC}${endcolor} $i\n" ' '>&$SILENT_OUT
printf "%${BUILD_INDENT}c ${boldgreen}APPLY PATCH${endcolor} ${boldwhite}${PATCH_DESC}${endcolor} ${i#$ROOT/}\n" ' '>&$SILENT_OUT
if [ -n "$(grep -E '^GIT binary patch$' $i)" ]; then
cat $i | git apply --directory=`echo "$PKG_BUILD" | cut -f1 -d\ ` -p1 --verbose --whitespace=nowarn --unsafe-paths >&$VERBOSE_OUT
else