mirror of
https://github.com/goreleaser/nfpm.git
synced 2026-06-19 08:05:04 +00:00
fix(rpm): conventional file name should always have the release (#701)
* fix(rpm): conventional file name should always have the release Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * test: fix acceptance test --------- Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
6692fd7d2c
commit
cb2d7bd5d5
Vendored
+6
-6
@@ -123,16 +123,16 @@ RUN command -v zsh
|
||||
|
||||
# ---- env-var-version test ----
|
||||
FROM min AS env-var-version
|
||||
ENV EXPECTVER="Version : 1.0.0~0.1.b1+git.abcdefgh" \
|
||||
EXPECTREL="Release : 1"
|
||||
ENV EXPECTVER="Version : 1.0.0~0.1.b1+git.abcdefgh-1" \
|
||||
EXPECTREL="Release : 1"
|
||||
RUN rpm -qpi /tmp/foo.rpm | sed -e 's/ \+/ /g' | grep "Version" > found.ver
|
||||
RUN rpm -qpi /tmp/foo.rpm | sed -e 's/ \+/ /g' | grep "Release" > found.rel
|
||||
RUN export FOUND_VER="$(cat found.ver)" && \
|
||||
echo "Expected: ${EXPECTVER}' :: Found: '${FOUND_VER}'" && \
|
||||
test "${FOUND_VER}" = "${EXPECTVER}"
|
||||
echo "Expected: ${EXPECTVER}' :: Found: '${FOUND_VER}'" && \
|
||||
test "${FOUND_VER}" = "${EXPECTVER}"
|
||||
RUN export FOUND_REL="$(cat found.rel)" && \
|
||||
echo "Expected: '${EXPECTREL}' :: Found: '${FOUND_REL}'" && \
|
||||
test "${FOUND_REL}" = "${EXPECTREL}"
|
||||
echo "Expected: '${EXPECTREL}' :: Found: '${FOUND_REL}'" && \
|
||||
test "${FOUND_REL}" = "${EXPECTREL}"
|
||||
|
||||
|
||||
# ---- changelog test ----
|
||||
|
||||
Reference in New Issue
Block a user