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

25 lines
638 B
Bash
Executable File

#!/bin/bash
PKGNAME=ostree
META_LAT_TARBALL=meta-lat.tar.gz
META_LAT=meta-lat
OSTREE_TARBALL=ostree.tar.gz
OSTREE=$1
mkdir -p ${META_LAT}
tar xzvf ${META_LAT_TARBALL} --strip-components 1 -C ${META_LAT}
mkdir -p ${OSTREE}
tar xzvf ${OSTREE_TARBALL} --strip-components 1 -C ${OSTREE}
BASE_DIR=$(realpath ${META_LAT})
SRC_DIR=$(realpath ${OSTREE})
META_DIR=${BASE_DIR}/data/debian/${PKGNAME}/metadata_patches
PATCHES_DIR=${BASE_DIR}/data/debian/${PKGNAME}/source_patches
cd ${SRC_DIR}
for patch in `ls ${META_DIR}/*.patch`; do
patch -p1 < $patch || exit 1
done
mkdir debian/patches/lat
cp -f ${PATCHES_DIR}/*.patch debian/patches/lat/