mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
scripts/unpack: versioning patch support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
97f1a547dd
commit
997dd43f86
@ -48,11 +48,11 @@ fi
|
|||||||
|
|
||||||
[ -f $PKG_DIR/after_unpack ] && $PKG_DIR/after_unpack $@ >&$VERBOSE_OUT
|
[ -f $PKG_DIR/after_unpack ] && $PKG_DIR/after_unpack $@ >&$VERBOSE_OUT
|
||||||
|
|
||||||
for i in $PKG_DIR/patches/*.diff*; do
|
for i in $PKG_DIR/patches/*.diff $PKG_DIR/patches/$PKG_NAME-$PKG_VERSION*.patch ; do
|
||||||
if [ -f $i ]; then
|
if [ -f $i ]; then
|
||||||
PATCH=`basename $i`
|
PATCH=`basename $i`
|
||||||
PT=`echo $PATCH | sed 's/.*\.\(.*\)$/\1/'`
|
PT=`echo $PATCH | sed 's/.*\.\(.*\)$/\1/'`
|
||||||
if [ "$PT" != diff -a "$PT" != "$TARGET_ARCH" -a "$PT" != "$TARGET_PLATFORM" ]; then
|
if [ "$PT" != patch -a "$PT" != diff -a "$PT" != "$TARGET_ARCH" -a "$PT" != "$TARGET_PLATFORM" ]; then
|
||||||
echo "## Skipping patch: $i"
|
echo "## Skipping patch: $i"
|
||||||
continue;
|
continue;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user