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 1
1
#! /bin/bash
2
2
set -euo pipefail
3
3
4
+ SCRIPT_DIR=" $( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd) "
5
+ REPO_ROOT=" $( realpath " ${SCRIPT_DIR} /../.." ) "
6
+
4
7
# We update the 'packages' list in the rpms.in.yaml based on the content
5
8
# 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' ' ' )
7
10
# 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
9
12
10
13
# Then we update the rpms.lock.yaml file based on rpms.in.yaml with
11
14
# rpm-lockfile-prototype.
45
48
exit 1
46
49
fi
47
50
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
49
52
50
53
echo " Deactivating virtual environment..."
51
54
deactivate
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments