diff options
author | Tore Anderson <tore@fud.no> | 2014-05-15 22:45:43 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-05-19 14:51:48 +0200 |
commit | c2e99b181f42dd4673990edd7347e84b007c164d (patch) | |
tree | f869e99699be1cdbbcebf85ecfb3c2419ca55318 | |
parent | 950d9fff263da19d4d9652ab5807d4e2984d63a3 (diff) |
contrib/rpm: force POSIX changelog date locale
Ensure the date in the generated changelog entry is in the POSIX locale
format. Otherwise rpmbuild might fail with "bad date in %changelog" due
to it not liking localised date formats.
https://mail.gnome.org/archives/networkmanager-list/2014-May/msg00034.html
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rwxr-xr-x | contrib/fedora/rpm/build.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/fedora/rpm/build.sh b/contrib/fedora/rpm/build.sh index 048ffac5ad..a087078c6c 100755 --- a/contrib/fedora/rpm/build.sh +++ b/contrib/fedora/rpm/build.sh @@ -110,7 +110,7 @@ fi if [[ "x$CHANGELOG" == x ]]; then cat <<EOF > "$TEMP/SOURCES/CHANGELOG" -* $(LOCALE= date '+%a %b %d %Y') $USERNAME - %{version}-%{release_version}%{snapshot}.%{git_sha} +* $(LC_TIME=C date '+%a %b %d %Y') $USERNAME - %{version}-%{release_version}%{snapshot}.%{git_sha} - Test build of NetworkManager ($DATE, $UUID) $(git log -n20 --date=local --format='- %h %s [%an] (%ci)') - ... |