Skip to content

Conversation

vladak
Copy link
Member

@vladak vladak commented Sep 20, 2019

Production instance had this in mirror.yml:

projects:
  foo:
    # ha

which produced:

Traceback (most recent call last):
  File "/opengrok/dist/bin/venv/bin/opengrok-mirror", line 11, in <module>
    load_entry_point('opengrok-tools==1.3.1', 'console_scripts', 'opengrok-mirror')()
  File "/opengrok/dist/bin/venv/lib/python3.7/site-packages/opengrok_tools/mirror.py", line 175, in main
    with lock.acquire(timeout=0):
  File "/opengrok/dist/bin/venv/lib/python3.7/site-packages/filelock.py", line 271, in acquire
    self._acquire()
  File "/opengrok/dist/bin/venv/lib/python3.7/site-packages/filelock.py", line 384, in _acquire
    fd = os.open(self._lock_file, open_mode)

This change fixes that.

in the face of empty per project dictionary
@vladak vladak merged commit 71b3793 into oracle:master Sep 24, 2019
@vladak vladak deleted the tools_check_empty_project_config branch September 24, 2019 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants