mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
buildsystem: set PKG_NAME and default PKG_*DESC only when sourcing a package
This commit is contained in:
@@ -165,11 +165,6 @@ reset_pkg_vars() {
|
||||
done
|
||||
[ -n "${vars}" ] && unset -v ${vars}
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
PKG_NAME="$1"
|
||||
PKG_SHORTDESC="$1 (autogenerated)"
|
||||
PKG_LONGDESC="$1 (autogenerated)"
|
||||
fi
|
||||
PKG_VERSION="0.0invalid"
|
||||
PKG_REV="0"
|
||||
PKG_ARCH="any"
|
||||
|
||||
@@ -113,6 +113,8 @@ unset LD_LIBRARY_PATH
|
||||
|
||||
if [ -n "$PKG_DIR" -a -r $PKG_DIR/package.mk ]; then
|
||||
. $PKG_DIR/package.mk
|
||||
[ -z "$PKG_SHORTDESC" ] && PKG_SHORTDESC="$PKG_NAME (autogenerated)"
|
||||
[ -z "$PKG_LONGDESC" ] && PKG_LONGDESC="$PKG_NAME (autogenerated)"
|
||||
fi
|
||||
|
||||
if [ "$PKG_IS_ADDON" = "yes" ] ; then
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
. config/options ""
|
||||
|
||||
get_deps() {
|
||||
need=()
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
unset _CACHE_PACKAGE_LOCAL _CACHE_PACKAGE_GLOBAL
|
||||
|
||||
. config/options $1
|
||||
. config/options TRIGGER_POPULATION_OF_CACHE_PACKAGE
|
||||
|
||||
. config/show_config
|
||||
show_config
|
||||
|
||||
Reference in New Issue
Block a user