make -n working not only in combination with -a
authorMateusz Konieczny <redacted>
Fri, 18 Mar 2016 20:27:09 +0000 (21:27 +0100)
committerMateusz Konieczny <redacted>
Fri, 18 Mar 2016 20:27:09 +0000 (21:27 +0100)
fixes #107

updateHostsFile.py

index dda1b51d0ce10fa083ad33e21634cd2cc9205312..a8ae555d28274b5a911ae85412755d5b5bdbe723 100644 (file)
@@ -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