mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
import: fix error when using python3-git from stretch
closes https://gitlab.com/fdroid/issuebot/-/issues/48#note_646592031 closes issuebot#48
This commit is contained in:
parent
c4d3e075cb
commit
3283ce2510
1 changed files with 4 additions and 1 deletions
|
@ -254,7 +254,10 @@ def main():
|
|||
sys.exit(1)
|
||||
elif tmp_importer_dir:
|
||||
# For Windows: Close the repo or a git.exe instance holds handles to repo
|
||||
git_repo.close()
|
||||
try:
|
||||
git_repo.close()
|
||||
except AttributeError: # Debian/stretch's version does not have close()
|
||||
pass
|
||||
# TODO: Python3.9: Accepts a path-like object for both src and dst.
|
||||
shutil.move(str(tmp_importer_dir), str(build_dir))
|
||||
Path('build/.fdroidvcs-' + appid).write_text(app.RepoType + ' ' + app.Repo)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue