From 1fabc3b4562cd1905088924680a9e6528c9adc07 Mon Sep 17 00:00:00 2001 From: Yue Tao Date: Fri, 14 Jan 2022 17:18:01 +0800 Subject: [PATCH] patch-alarm: remove dl_hook Replace dl_hook with "src_path" and "src_files" Test Plan: Pass: successfully build patch-alarm Pass: No difference comparing with the result of dl_hook Story: 2009101 Task: 43897 Signed-off-by: Yue Tao Change-Id: I7f7a59271d5f290b6f6a8778984bc5d3176536cd --- patch-alarm/debian/dl_hook | 13 ------------- patch-alarm/debian/meta_data.yaml | 4 +++- 2 files changed, 3 insertions(+), 14 deletions(-) delete mode 100755 patch-alarm/debian/dl_hook diff --git a/patch-alarm/debian/dl_hook b/patch-alarm/debian/dl_hook deleted file mode 100755 index 4a128d3f..00000000 --- a/patch-alarm/debian/dl_hook +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -set -x - -PKG_BUILD_NAME=$1 -PKG_BUILD_ROOT=$(realpath `pwd`/${PKG_BUILD_NAME}) -STX_BASE=$(realpath ${MY_REPO}/stx) -SRC=$(realpath ${STX_BASE}/update/patch-alarm) - -mkdir ${PKG_BUILD_NAME} - -# Copy source files from multiple locations to build root. -cp -pr ${SRC}/patch-alarm/* ${PKG_BUILD_ROOT} -cp -pr ${SRC}/scripts ${PKG_BUILD_ROOT} diff --git a/patch-alarm/debian/meta_data.yaml b/patch-alarm/debian/meta_data.yaml index 0041fc4e..ad3ddb60 100644 --- a/patch-alarm/debian/meta_data.yaml +++ b/patch-alarm/debian/meta_data.yaml @@ -1,7 +1,9 @@ --- debname: python3-patch-alarm debver: 1.0-1 -dl_hook: dl_hook +src_path: patch-alarm +src_files: + - scripts revision: dist: $STX_DIST PKG_GITREVCOUNT: true