Skip to content

Commit d3cf65e

Browse files
committed
test
1 parent ba1c942 commit d3cf65e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

image/db/rhel/Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,9 @@ RUN microdnf upgrade -y --nobest && \
6565
ARCH="$(arch)" && \
6666
for p in /tmp/postgres-libs.rpm /tmp/postgres.rpm /tmp/postgres-server.rpm /tmp/postgres-contrib.rpm; do \
6767
test -e "$p" || { echo "ERROR: Missing $p"; exit 1; }; \
68-
# dist tag must be .el${RHEL_MAJOR} (or rhel${RHEL_MAJOR}); arch must match
69-
if ! rpm -qp --qf '%{DIST}\n' "$p" | grep -Eq '(\.el'"${RHEL_MAJOR}"'|rhel'"${RHEL_MAJOR}"')'; then \
68+
if ! rpm -qp --qf '%{RELEASE}\n' "$p" | grep -Eq '(\.el'"${RHEL_MAJOR}"'|rhel'"${RHEL_MAJOR}"')'; then \
7069
echo "ERROR: $p is not an EL${RHEL_MAJOR} build."; exit 1; \
7170
fi; \
72-
if ! rpm -qp --qf '%{ARCH}\n' "$p" | grep -qx "${ARCH}"; then \
73-
echo "ERROR: $p arch does not match ${ARCH}."; exit 1; \
74-
fi; \
7571
# must NOT require OPENSSL_3.4 on EL8/EL9
7672
if [ "${RHEL_MAJOR}" -lt 10 ] && rpm -qpR "$p" | grep -q 'OPENSSL_3\.4'; then \
7773
echo "ERROR: $p requires OPENSSL_3.4, incompatible with EL${RHEL_MAJOR} (OpenSSL 3.0)."; exit 1; \

0 commit comments

Comments
 (0)