From 7f029dd80f93b6ce8447a866a4e481744ac3061e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 29 Mar 2021 14:15:08 +0200 Subject: [PATCH] allow jhbuild to run as root (#52319) --- publish.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/publish.py b/publish.py index c308083..0510a00 100755 --- a/publish.py +++ b/publish.py @@ -21,6 +21,8 @@ jhbuildrc = os.path.join(os.getcwd(), 'jhbuildrc') checkouts_directory = os.path.join(os.getcwd(), '..', 'src') web_directory = os.path.join(os.getcwd(), '..', 'web') +os.environ['JHBUILD_RUN_AS_ROOT'] = '1' + if not os.path.exists('jhbuild'): os.system('jhbuild -f jhbuildrc -m doceo.modules buildone itstool yelp-xsl yelp-tools')