mirror of
https://git.yoctoproject.org/git/opkg-utils
synced 2026-07-12 19:12:15 +02:00
opkg-build: return error if Version is missing
If Version is missing in a control file, opkg-build reports an error to stdout, but returns 0. Fix condition on pkg_appears_sane to properly return an error if Version is missing. Suggested-by: Thomas de Schampheleire <patrickdepinguin@gmail.com> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
This commit is contained in:
@@ -86,8 +86,9 @@ You probably want to chown these to a system user: " >&2
|
||||
pkg=`required_field Package`
|
||||
[ "$?" -ne 0 ] && PKG_ERROR=1
|
||||
|
||||
version=`required_field Version | sed 's/Version://; s/^.://g;'`
|
||||
version=`required_field Version`
|
||||
[ "$?" -ne 0 ] && PKG_ERROR=1
|
||||
version=`echo $version | sed 's/Version://; s/^.://g;'`
|
||||
|
||||
arch=`required_field Architecture`
|
||||
[ "$?" -ne 0 ] && PKG_ERROR=1
|
||||
|
||||
Reference in New Issue
Block a user