mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-05 17:01:06 +03:00
Merge branch 'fix-issuebot-48' into 'master'
import: fix error when using python3-git from stretch Closes #48 and issuebot#48 See merge request fdroid/fdroidserver!993
This commit is contained in:
commit
5e35c20d5d
1 changed files with 4 additions and 1 deletions
|
@ -254,7 +254,10 @@ def main():
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
elif tmp_importer_dir:
|
elif tmp_importer_dir:
|
||||||
# For Windows: Close the repo or a git.exe instance holds handles to repo
|
# 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.
|
# TODO: Python3.9: Accepts a path-like object for both src and dst.
|
||||||
shutil.move(str(tmp_importer_dir), str(build_dir))
|
shutil.move(str(tmp_importer_dir), str(build_dir))
|
||||||
Path('build/.fdroidvcs-' + appid).write_text(app.RepoType + ' ' + app.Repo)
|
Path('build/.fdroidvcs-' + appid).write_text(app.RepoType + ' ' + app.Repo)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue