scripts/image: fixup installed Kodi version in RELEASE

Switch scripts/git_version for get_pkg_version out of
config/functions. Resolves being unable to report Kodi's version
in RELEASE file.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
Ian Leonard 2018-08-15 17:30:58 +00:00
parent 996876d9a1
commit bfce57a7bd

View File

@ -274,7 +274,7 @@ if [ "$1" = "release" -o "$1" = "mkimage" -o "$1" = "amlpkg" -o "$1" = "noobs" ]
echo "$TARGET_VERSION" > $RELEASE_DIR/RELEASE
if [ -n "$MEDIACENTER" ]; then
echo "Kodi commit: $(scripts/git_version $MEDIACENTER)" >> $RELEASE_DIR/RELEASE
echo "Kodi commit: $(get_pkg_version $MEDIACENTER)" >> $RELEASE_DIR/RELEASE
fi
mkdir -p $RELEASE_DIR/licenses