Commit dbef31b8 authored by Markus Frosch's avatar Markus Frosch 📣

release: Fix time locale for RPM

parent e2c4284f
Pipeline #7445 passed with stage
in 22 seconds
......@@ -10,6 +10,8 @@ RPM_VERSION_REPLACE='\1'
RPM_REVISION_RE='^(Release:\s+).*'
RPM_REVISION_SUFFIX='%{?dist}'
export LC_TIME=C
error() {
if [ -t 2 ]; then
{
......@@ -37,7 +39,7 @@ help() {
}
rpm_date() {
LANG=C echo "$(date +%A | sed -r 's~([a-z]{3}).*~\1~i')" "$(date +'%b %d %Y')"
echo "$(date +%A | sed -r 's~([a-z]{3}).*~\1~i')" "$(date +'%b %d %Y')"
}
if [ $# -ge 1 ]; then
......@@ -121,7 +123,7 @@ if [ "$variant" = deb ]; then
source_name="$(grep Source: debian/control | awk '{print $2}')"
changelog="${source_name} (${full_version}) ${DCH_DIST}; urgency=medium"$'\n\n'
changelog+=" * ${message}"$'\n'
changelog+=$'\n'" -- ${DEBFULLNAME} <${DEBEMAIL}> $(LANG=C date -R)"$'\n\n'
changelog+=$'\n'" -- ${DEBFULLNAME} <${DEBEMAIL}> $(date -R)"$'\n\n'
# Insert into changelog
echo -n "${changelog}" | cat - debian/changelog >debian/changelog.tmp
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment