mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/boypt/openssh-rpms.git
synced 2026-09-20 08:03:38 +08:00
DNF 4.x baseurl is list type (space-separated on one line per dnf.readthedocs.io); repeated baseurl= keys overwrite and only the last survives. Rewrite join_baseurls and add rewrite_baseurls helper to emit single baseurl= line with space-separated mirrors while preserving remainder after prefix (fixes multi-line sed truncation). Keep official-first ordering for GitHub CI. Also quote ELDIR in docker_compile.sh to pass shellcheck.
21 lines
413 B
Bash
Executable File
21 lines
413 B
Bash
Executable File
#!/bin/bash
|
|
DOCKER_BUILD_DIR=/BUILD
|
|
mkdir -p $DOCKER_BUILD_DIR
|
|
ELDIR=$(./compile.sh GETEL)
|
|
|
|
if ! rpm -q openssl-devel; then
|
|
WITH_OPENSSL=2
|
|
fi
|
|
|
|
OPENSSLVER=$(rpm -q openssl --qf "%{VERSION}" | cut -d. -f1)
|
|
if [[ ${WITH_OPENSSL+x} == "" ]]; then
|
|
if [[ $OPENSSLVER -ge 3 ]]; then
|
|
export WITH_OPENSSL=1
|
|
else
|
|
export WITH_OPENSSL=2
|
|
fi
|
|
fi
|
|
|
|
cp -r "$ELDIR" $DOCKER_BUILD_DIR
|
|
./compile.sh "$DOCKER_BUILD_DIR/$ELDIR"
|