From 5dd831b1e11955c47234f950f5e4d8f933159daa Mon Sep 17 00:00:00 2001 From: Yue Tao Date: Mon, 17 Jan 2022 11:02:58 +0800 Subject: [PATCH] stx-portieris-helm: remove dl_hook Replace dl_hook with "src_path" and "src_files" Test Plan: Pass: successfully build stx-portieris-helm Pass: No difference comparing with the result of dl_hook Story: 2009101 Task: 43845 Signed-off-by: Yue Tao Change-Id: I498c7b00e46b1687c080cf53db8e42c0faeefa92 --- stx-portieris-helm/debian/dl_hook | 20 -------------------- stx-portieris-helm/debian/meta_data.yaml | 4 +++- 2 files changed, 3 insertions(+), 21 deletions(-) delete mode 100755 stx-portieris-helm/debian/dl_hook diff --git a/stx-portieris-helm/debian/dl_hook b/stx-portieris-helm/debian/dl_hook deleted file mode 100755 index c7bde15..0000000 --- a/stx-portieris-helm/debian/dl_hook +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -x - -PKG_BUILD_NAME=$1 -PKG_BUILD_ROOT=$(realpath `pwd`/${PKG_BUILD_NAME}) -PKG_DIR="stx-portieris-helm" - -STX_BASE=$(realpath ${MY_REPO}/stx) -SRC=$(realpath ${STX_BASE}/portieris-armada-app/${PKG_DIR}/${PKG_DIR}) -PSP_HELM_CHARTS=$(realpath ${STX_BASE}/helm-charts/psp-rolebinding/psp-rolebinding/helm-charts) - -mkdir -p ${PKG_BUILD_ROOT} - -# Copy PSP rolebinding helm charts to the build directory. -cp -pr ${PSP_HELM_CHARTS} ${PKG_BUILD_ROOT} - -# Copy source files to the build directory. -cp -pr ${SRC}/files ${PKG_BUILD_ROOT} -cp -pr ${SRC}/helm-charts/* ${PKG_BUILD_ROOT}/helm-charts -cp -pr ${SRC}/manifests ${PKG_BUILD_ROOT} diff --git a/stx-portieris-helm/debian/meta_data.yaml b/stx-portieris-helm/debian/meta_data.yaml index e230633..da29e9c 100644 --- a/stx-portieris-helm/debian/meta_data.yaml +++ b/stx-portieris-helm/debian/meta_data.yaml @@ -1,7 +1,9 @@ --- debname: stx-portieris-helm debver: 1.0-1 -dl_hook: dl_hook +src_path: stx-portieris-helm +src_files: + - ${MY_REPO}/stx/helm-charts/psp-rolebinding/psp-rolebinding revision: dist: $STX_DIST PKG_GITREVCOUNT: true