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.
---
 contrib/fedora/rpm/build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/fedora/rpm/build.sh b/contrib/fedora/rpm/build.sh
index 048ffac..a087078 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)')
 - ...
-- 
1.9.0

_______________________________________________
networkmanager-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/networkmanager-list

Reply via email to