mirror of
https://github.com/libretro/Lakka.git
synced 2024-12-04 14:18:33 +00:00
config/path: allow addons with empty PKG_SECTION
This commit is contained in:
parent
4277c55a21
commit
1c5e34a84f
@ -49,7 +49,7 @@ SED="sed -i"
|
||||
PKG_DEPENDS=""
|
||||
PKG_BUILD_DEPENDS=""
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="misc"
|
||||
PKG_SECTION=""
|
||||
PKG_SHORTDESC="$1 (autogenerated)"
|
||||
PKG_LONGDESC=""
|
||||
PKG_IS_ADDON="no"
|
||||
@ -64,7 +64,9 @@ SED="sed -i"
|
||||
fi
|
||||
|
||||
[ -r $PKG_DIR/meta ] && . $PKG_DIR/meta
|
||||
[ "$PKG_IS_ADDON" = "yes" ] && PKG_ADDON_ID="`echo $PKG_SECTION | sed 's,/,.,g'`.$PKG_NAME"
|
||||
if [ "$PKG_IS_ADDON" = "yes" ] ; then
|
||||
[ -z $PKG_SECTION ] && PKG_ADDON_ID="$PKG_NAME" || PKG_ADDON_ID="`echo $PKG_SECTION | sed 's,/,.,g'`.$PKG_NAME"
|
||||
fi
|
||||
|
||||
[ -d $BUILD/${PKG_NAME}[-_.]${PKG_VERSION} ] && PKG_BUILD=`ls -d $BUILD/${PKG_NAME}[-_.]${PKG_VERSION}`
|
||||
[ -d $BUILD/${PKG_NAME}${PKG_VERSION} ] && PKG_BUILD=`ls -d $BUILD/${PKG_NAME}${PKG_VERSION}`
|
||||
|
Loading…
Reference in New Issue
Block a user