stx tool: prepare: Create empty deb-local-binary repo

For a new project, the deb-local-binary repo was not created before
building the first package, so that the compiling task failed.
Now we create the empty deb-local-binary repo when executing the
prepare task to make sure deb-local-binary repo exist.

Story: 2008862
Task: 43779

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Change-Id: I74754de6aea72769d490cf5b678ee223d097918b
This commit is contained in:
Zhixiong Chi 2021-10-27 04:55:48 -04:00
parent 9011994b16
commit 3c53a1319d

View File

@ -26,6 +26,14 @@ fi
sudo apt-get update
# create deb-local-binary empty repo for building first package, certainly the developer
# also could select to download the other binary list in deb-mirror-tools directory with
# debdownloader command, for example we download the base-bullseye.lst before building
# image.
TMPLIST=`mktemp /tmp/XXXXXX.lst`
debdownloader $TMPLIST
rm $TMPLIST
if [[ x"$CENGNURL" != x"" ]]; then
repo_manage.py mirror --url $CENGNURL
fi