buildsystem: set PKG_NAME and default PKG_*DESC only when sourcing a package

This commit is contained in:
MilhouseVH
2017-12-17 19:12:59 +00:00
parent 85a97582de
commit 4e77097d23
4 changed files with 4 additions and 7 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -18,7 +18,7 @@
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
. config/options $1
. config/options ""
get_deps() {
need=()

View File

@@ -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