Skip to content

Commit

Permalink
unicontrol: do not break builds of el7 pkgs
Browse files Browse the repository at this point in the history
... by unexpectedly making python3 available.  This change makes the
scan of glusterfs-6.0-49.1.el7 succeed.
  • Loading branch information
kdudka committed Feb 21, 2022
1 parent fd2317b commit 2ad478e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions py/plugins/unicontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ def write_toolver_hook(results):
props.install_pkgs += ["python3-six"]
props.install_opt_pkgs += ["python3-magic"]

if props.mock_profile.startswith("rhel-7"):
# do not break el7 builds by unexpectedly making python3 available
props.env["PYTHON"] = "/usr/bin/python2"

cmd = "LANG=en_US.utf8 %s -d -v %s" % (UNICONTROL_SCRIPT, UNICONTROL_SCAN_DIR)

if args.unicontrol_bidi_only:
Expand Down

0 comments on commit 2ad478e

Please sign in to comment.