git.99rst.org
/
stevenblack-hosts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
1dc456b
)
make -n working not only in combination with -a
author
Mateusz Konieczny
<redacted>
Fri, 18 Mar 2016 20:27:09 +0000
(21:27 +0100)
committer
Mateusz Konieczny
<redacted>
Fri, 18 Mar 2016 20:27:09 +0000
(21:27 +0100)
fixes #107
updateHostsFile.py
patch
|
blob
|
history
diff --git
a/updateHostsFile.py
b/updateHostsFile.py
index dda1b51d0ce10fa083ad33e21634cd2cc9205312..a8ae555d28274b5a911ae85412755d5b5bdbe723 100644
(file)
--- a/
updateHostsFile.py
+++ b/
updateHostsFile.py
@@
-146,8
+146,11
@@
def promptForUpdate():
except:
printFailure("ERROR: No 'hosts' file in the folder, try creating one manually")
+ if not update:
+ return
+
response = "yes" if auto else query_yes_no("Do you want to update all data sources?")
- if response == "yes"
and update
:
+ if response == "yes":
updateAllSources()
else:
if not auto:
git clone https://git.99rst.org/PROJECT