integ/ostree/mttyexec/debian/dl_hook
Yue Tao 9b855ce0af ostree: use tarballs to replace the meta-lat and ostree in manifest
Use the dl_files to download meta-lat 20211214 version tarball, and
ostree 2019.1-1 tarball. No longer need the meta-lat and ostree
repositories in manifest.

Test Plan:

Pass: successfully build ostree-upgrade-mgr, ostree, mttyexec,
      initramfs-ostree, watchdog
Pass: successfully install test
Pass: successfully boot test

Story: 2008846
Task: 44194

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Change-Id: Iff7d32c8764068318ccf854551addf1aa880334e
2022-01-11 16:14:10 +08:00

16 lines
387 B
Bash
Executable File

#!/bin/bash
LOCAL_DIR=$1
PKGNAME=mttyexec
META_LAT_TARBALL=meta-lat.tar.gz
META_LAT=meta-lat
mkdir -p ${META_LAT}
tar xzvf ${META_LAT_TARBALL} --strip-components 1 -C ${META_LAT}
BASE_DIR=$(realpath ${META_LAT})
SRC_DIR=${BASE_DIR}/data/debian/${PKGNAME}/sources
DEB_DIR=${BASE_DIR}/data/debian/${PKGNAME}/metadata/debian
cp -Lr ${SRC_DIR} ${LOCAL_DIR}
cp -Lr ${DEB_DIR} ${LOCAL_DIR}