Skip to content

Commit 78a253b

Browse files
committed
ci/hermetic: move RPM lockfiles to repository root
This change ensures RPM lockfiles are located in the repository's root directory, a requirement for MintMaker to correctly update them.
1 parent 6988135 commit 78a253b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

ci/hermetic/update_rpms_lockfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
#!/bin/bash
22
set -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.
@@ -45,7 +48,7 @@ else
4548
exit 1
4649
fi
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

5053
echo "Deactivating virtual environment..."
5154
deactivate
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)