Commit f71c96ad authored by Jérome Perrin's avatar Jérome Perrin

component/firefox: use .format string subsitutions

so that we don't have to escape % as %%
parent 654ac2e1
master 1.0 ZODB3 add-python-version alain-wrapper-recipe arnau arnau-RD-pylint-latest beremiz cloudooo_test_with_client_certificate cmf_upgrade_versions cythonplus debug-resiliency django django-tutorial draft_cloudooo_py3 erp5-component failover-backend feat/debian11 feat/firefox-78-seleniumserver feat/fix_kvm_wipe feat/gitea feat/mgroonga feat/obs_test feat/run-tests-at-compile-time feat/seleniumrunner-firefox-60 feat/telegraf-version-up feat/testcase feat/theia-bash-completions firefox-version-up fix-1.0.106.1 fix-1.0.135.1 fix-1.0.190.1 fix-1.0.95 fix-1.0.95.1 fix-url-inline-conflict fix/cloudooo-rpath fix/jinja2_version_up fix/resilient_test gitlab-fixup gitlab-upgrade glib html5as html5as-base html5as-test html5as-tutorial improve-monitor-httpd intentially_broken_cloudooo jm jm-py3 json-api kvm_auto_reboot lle-bout/ppc64le logrotate/truncate macro-interpreter-pygolang macros-reunited master+ZODB4-wc2 moodle my2to3 nayuos-anonimity nayuos-lorenzo php-7 proview-r recipe_egg_python remove_tempstorage replace-template repman-1.0 repman-parameters resilience_all_parameters resiliencefix runner-multi-sr scalability_crash_mariadb stack/supervisord test-fix-erp5-resiliency tomo_fix_erp5 tomo_fix_kvm tomo_old_slapos_to_test_testnode ttrm-novel ttrm-novel-fix-testnode wsgi-gevent y/wc2-next zope4 zope4py2 zope4py3 1.0.231 1.0.230 1.0.229 1.0.228 1.0.227 1.0.226 1.0.225 1.0.224 1.0.223 1.0.222 1.0.221 1.0.220 1.0.219 1.0.218 1.0.217 1.0.216 1.0.215 1.0.214 1.0.213 1.0.212 1.0.211 1.0.210 1.0.209 1.0.208 1.0.207 1.0.206 1.0.205 1.0.204 1.0.203 1.0.202 1.0.201 1.0.200 1.0.199 1.0.198 1.0.197 1.0.196 1.0.195 1.0.194 1.0.193 1.0.192 1.0.191 1.0.190.1 1.0.190 1.0.189 1.0.188 1.0.187 1.0.186 1.0.185 1.0.184 1.0.183 1.0.182 1.0.181 1.0.180 1.0.179 1.0.178 1.0.177 1.0.176 1.0.175 1.0.174 1.0.173 1.0.172 1.0.171 1.0.170 1.0.169 1.0.168 1.0.167.5 1.0.167.4 1.0.167.3 1.0.167.2 1.0.167.1 1.0.167 1.0.166 1.0.165 1.0.164 1.0.163 1.0.162 1.0.161.1 1.0.161 1.0.160 1.0.159 1.0.158 1.0.157 1.0.156 1.0.155 1.0.154 1.0.153 1.0.152 1.0.151 1.0.150 1.0.149 1.0.148 1.0.147 1.0.146 1.0.145 1.0.144 1.0.143 1.0.142 1.0.141 1.0.140 1.0.137 1.0.136 1.0.135.1 1.0.135 1.0.134 1.0.133 1.0.132 1.0.131 1.0.130 1.0.129 1.0.128 1.0.127 1.0.126 1.0.125 1.0.124 1.0.123 1.0.122 1.0.121 1.0.120 1.0.119 1.0.118 1.0.117 1.0.116 1.0.115 1.0.114 1.0.113 1.0.112 1.0.111 1.0.110 1.0.109 1.0.108 1.0.107 1.0.106.1 1.0.106 1.0.105 1.0.104 1.0.103 1.0.102 1.0.101 1.0.100 1.0.99 1.0.98 1.0.97 1.0.96 1.0.95.2 1.0.95.1 1.0.95 1.0.94 1.0.93 1.0.92 1.0.91 1.0.90 1.0.89 1.0.88 1.0.87 1.0.86 1.0.85 1.0.84 1.0.83.1 1.0.83 1.0.82 1.0.81 1.0.80 1.0.79 1.0.78 1.0.77 1.0.76 1.0.75 slapos.cookbook-1.0.124 seleniumrunner-firefox60 re6stnet-0.551+2 re6stnet-0.548+3 re6stnet-0.541+1 re6stnet-0.539+3 re6stnet-0.539+2 re6stnet-0.539+1 re6stnet-0.536+2 phase-1.00 erp5testnode-scalability-1-rc2
No related merge requests found
......@@ -37,11 +37,11 @@ script =
part = self.buildout[os.path.basename(firefox)]
with open(%(location)r, 'w') as f:
f.write("""#!/bin/sh -e
cd %%s
export LD_LIBRARY_PATH=$PWD:%%s
export PATH=%%s:$PATH
cd {}
export LD_LIBRARY_PATH=$PWD:{}
export PATH={}:$PATH
exec ./firefox "$@" 2>/dev/null
""" %% (
""".format(
firefox,
':'.join(part['library'].split()),
':'.join(part['path'].split()),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment