update/sw-patch/scripts/query_patch.sh
Al Bailey 0eb171c11c Setup debian patching scripts
The previous patching scripts were specific to the
centos rpm patching directories, so these scripts
are cloned for the debian env and updated to reflect
the new python and binary locations.

These scripts affect build commands and not runtime.
These scripts are not operational as they point to
utilities and imports that are not converted to ostree
yet.

Test Plan:
 Verify build and ISO creation for debian succeed.

Story: 2009969
Task: 45198
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: Ia903c6b4f07e3d1409c04c2cc17ff40a2e5a4c7f
2022-04-28 16:16:48 +00:00

21 lines
382 B
Bash
Executable File

#!/bin/bash
#
# Copyright (c) 2022 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
pushd `dirname $0` > /dev/null
SCRIPTPATH=`pwd`
popd > /dev/null
SWPATCH_DIR=$SCRIPTPATH/..
# Set environment variables for python
export PYTHONPATH=$SWPATCH_DIR/cgcs-patch
export PYTHONDONTWRITEBYTECODE=true
# Run the patch_build tool
exec $SWPATCH_DIR/bin/query_patch "$@"