gitlab: add Gemfile fix to update script

Since some GitLab versions, we need to remove the mail-smtp-pool
dependency from the Gemfile, or do other modifications.
Let's add those changes, that will probably be needed in the next
version as well, to the update script.
This commit is contained in:
Milan Pässler 2021-05-24 21:26:08 +02:00
parent c57cf7b5eb
commit 0c8f5b7b44
No known key found for this signature in database
GPG key ID: A6DC6A7CB0B97859

View file

@ -131,9 +131,11 @@ def update_rubyenv():
data = _get_data_json()
rev = data['rev']
for fn in ['Gemfile.lock', 'Gemfile']:
with open(rubyenv_dir / fn, 'w') as f:
f.write(repo.get_file(fn, rev))
with open(rubyenv_dir / 'Gemfile.lock', 'w') as f:
f.write(repo.get_file('Gemfile.lock', rev))
with open(rubyenv_dir / 'Gemfile', 'w') as f:
original = repo.get_file('Gemfile', rev)
f.write(re.sub(r".*mail-smtp_pool.*", "", original))
subprocess.check_output(['bundle', 'lock'], cwd=rubyenv_dir)
subprocess.check_output(['bundix'], cwd=rubyenv_dir)