buildrpm: do not break in presence of custom user configs
authormuxator <a.mux@inwind.it>
Fri, 04 Aug 2017 08:15:10 +0200
changeset 33686 5aac617a028d
parent 33685 e1c56486d1aa
child 33687 6294654453ee
buildrpm: do not break in presence of custom user configs For example, if "hg log" was defined as an alias: # /etc/mercurial/hgrc [alias] log = log --graph the buildrpm script would be surprised by log messages formatted in unexpected ways, and bail out. This patch sets HGPLAIN, effectively resetting all the user configs, including log output, to a common state, making the build more predictable across all the possible environments.
contrib/buildrpm
--- a/contrib/buildrpm	Fri Aug 04 05:38:22 2017 -0700
+++ b/contrib/buildrpm	Fri Aug 04 08:15:10 2017 +0200
@@ -11,6 +11,8 @@
 
 BUILD=1
 RPMBUILDDIR="$PWD/rpmbuild"
+export HGPLAIN=
+
 while [ "$1" ]; do
     case "$1" in
     --prepare )