mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Prevented potential mistake that I definitely didn't just make
This commit is contained in:
parent
12e0e6f4c9
commit
4214bc89cc
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@
|
|||||||
*.txt
|
*.txt
|
||||||
*.xcf
|
*.xcf
|
||||||
nohup.out
|
nohup.out
|
||||||
|
/.dev
|
||||||
|
|
||||||
# user files
|
# user files
|
||||||
*.tsv
|
*.tsv
|
||||||
|
4
maloja
4
maloja
@ -230,6 +230,10 @@ def update():
|
|||||||
|
|
||||||
if not gotodir(): return False
|
if not gotodir(): return False
|
||||||
|
|
||||||
|
if os.path.exists("./.dev"):
|
||||||
|
print("Better not overwrite the development server!")
|
||||||
|
return
|
||||||
|
|
||||||
print("Updating Maloja...")
|
print("Updating Maloja...")
|
||||||
#with urllib.request.urlopen(SOURCE_URL) as response:
|
#with urllib.request.urlopen(SOURCE_URL) as response:
|
||||||
# with tempfile.NamedTemporaryFile(delete=True) as tmpfile:
|
# with tempfile.NamedTemporaryFile(delete=True) as tmpfile:
|
||||||
|
Loading…
Reference in New Issue
Block a user