Skip to content

Commit b87efd8

Browse files
committed
run.py --local-build: teach fetching source tarballs from the Almalinux bucket
Signed-off-by: Yann Dirson <[email protected]>
1 parent c5bcd08 commit b87efd8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Dockerfile-9.x

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ RUN dnf install -y \
3030

3131
# EPEL: needs epel-release installed first
3232
RUN dnf install -y \
33-
epel-rpm-macros
33+
epel-rpm-macros \
34+
almalinux-git-utils
3435

3536
# Niceties
3637
RUN dnf install -y \

files/init-container.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ if [ -n "$BUILD_LOCAL" ]; then
8282
fi
8383
echo "Found specfiles $specs"
8484

85+
case "$OS_RELEASE" in
86+
8.2.*|8.3.*) ;; # sources always available via git-lfs
87+
8.99.*|9.*) if [ -r sources ]; then alma_get_sources -i sources; fi ;;
88+
*) echo >&2 "ERROR: unknown release, cannot know package manager"; exit 1 ;;
89+
esac
90+
8591
sudo $BDEP -y $specs
8692
RPMBUILDFLAGS=(
8793
-ba $specs

0 commit comments

Comments
 (0)