mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-07-04 03:26:12 +02:00
Merge pull request #112 from matkoniecz/refuse_update
make -n working not only in combination with -a
This commit is contained in:
commit
4e0e298217
|
@ -143,8 +143,11 @@ def promptForUpdate():
|
||||||
except:
|
except:
|
||||||
printFailure("ERROR: No 'hosts' file in the folder, try creating one manually")
|
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?")
|
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()
|
updateAllSources()
|
||||||
else:
|
else:
|
||||||
if not auto:
|
if not auto:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user