mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Make pre-commit hook pass after python3 switch
This commit is contained in:
parent
49ac25270e
commit
ee9a296b64
7 changed files with 18 additions and 17 deletions
|
|
@ -295,12 +295,12 @@ def main():
|
|||
sftp = ssh.open_sftp()
|
||||
if os.path.basename(remotepath) \
|
||||
not in sftp.listdir(os.path.dirname(remotepath)):
|
||||
sftp.mkdir(remotepath, mode=0755)
|
||||
sftp.mkdir(remotepath, mode=0o755)
|
||||
for repo_section in repo_sections:
|
||||
repo_path = os.path.join(remotepath, repo_section)
|
||||
if os.path.basename(repo_path) \
|
||||
not in sftp.listdir(remotepath):
|
||||
sftp.mkdir(repo_path, mode=0755)
|
||||
sftp.mkdir(repo_path, mode=0o755)
|
||||
sftp.close()
|
||||
ssh.close()
|
||||
elif options.command == 'update':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue