File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22set -euo pipefail
33
4+ SCRIPT_DIR=" $( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd) "
5+ REPO_ROOT=" $( realpath " ${SCRIPT_DIR} /../.." ) "
6+
47# We update the 'packages' list in the rpms.in.yaml based on the content
58# of the *deps*.txt file located in src/.
6- dep_files=$( find ../../ src/ -name " *deps*.txt" | tr ' \n' ' ' )
9+ dep_files=$( find " ${REPO_ROOT} / src/" -name " *deps*.txt" | tr ' \n' ' ' )
710# shellcheck disable=SC2086
8- . /update_package_list --package_file $dep_files --yaml_file rpms.in.yaml
11+ ${SCRIPT_DIR} /update_package_list --package_file $dep_files --yaml_file ${REPO_ROOT} / rpms.in.yaml
912
1013# Then we update the rpms.lock.yaml file based on rpms.in.yaml with
1114# rpm-lockfile-prototype.
4548 exit 1
4649fi
4750
48- rpm-lockfile-prototype rpms.in.yaml --outfile rpms.lock.yaml
51+ rpm-lockfile-prototype ${REPO_ROOT} / rpms.in.yaml --outfile ${REPO_ROOT} / rpms.lock.yaml
4952
5053echo " Deactivating virtual environment..."
5154deactivate
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments