package-installs assumes packages have a pkg-map
Our package-installs script fails when installing a package which does not have a pkg-map but a pkg-map file exist for the element. Change-Id: I3dab802e23bccfc916efcc1c70c6ce6c4a9ccf67
This commit is contained in:
parent
1e55938148
commit
c27e32f769
1 changed files with 6 additions and 1 deletions
|
@ -50,7 +50,12 @@ for PACKAGEFILE in $(find $WORKDIR -maxdepth 1 -name "package-installs-*" ); do
|
|||
|
||||
if [ -e /usr/share/pkg-map/$element_name ]; then
|
||||
# map the package to its true name
|
||||
pkg=$(pkg-map --element $element_name $pkg)
|
||||
set +e
|
||||
map_pkg=$(pkg-map --element $element_name $pkg)
|
||||
if [ $? -eq 0 ]; then
|
||||
pkg=$map_pkg
|
||||
fi
|
||||
set -e
|
||||
fi
|
||||
|
||||
PACKAGES="$PACKAGES $pkg"
|
||||
|
|
Loading…
Reference in a new issue