Skip to content
Snippets Groups Projects
Commit 5aac617a authored by muxator's avatar muxator
Browse files

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.
parent e1c56486
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,8 @@
BUILD=1
RPMBUILDDIR="$PWD/rpmbuild"
export HGPLAIN=
while [ "$1" ]; do
case "$1" in
--prepare )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment