Commit 2ad98e13 authored by fimap.dev@gmail.com's avatar fimap.dev@gmail.com

Fixed bug #31.

parent c31cca81
......@@ -121,8 +121,8 @@ class baseTools(object):
return False
def suggest_update(self, orginal_file, replacement_file):
print orginal_file
print replacement_file
#print orginal_file
#print replacement_file
inp = raw_input("Do you want to update? [y/N]")
if (inp == "Y" or inp == "y"):
print "Updating..."
......
......@@ -62,3 +62,6 @@ Fernando G.G. Ortiz <death_squad3 [ATOM] hotmail.com>
cmendozabenitez <http://code.google.com/u/cmendozabenitez>
For reporting a bug.
Gilak Banget <http://code.google.com/u/gilak.banget>
For reporting a bug.
......@@ -467,6 +467,22 @@ if __name__ == "__main__":
injector = codeinjector(config)
injector.testRFI()
sys.exit(0)
else:
# Test RFI settings stupidly.
from config import settings
if settings["dynamic_rfi"]["mode"] == "local":
if settings["dynamic_rfi"]["local"]["local_path"] == None or settings["dynamic_rfi"]["local"]["http_map"] == None:
print "Invalid Dynamic_RFI config!"
print "local_path and\\or http_map is not defined for local mode!"
print "Fix that in config.py"
sys.exit(1)
elif settings["dynamic_rfi"]["mode"] == "local":
if settings["dynamic_rfi"]["ftp"]["ftp_host"] == None or settings["dynamic_rfi"]["ftp"]["ftp_user"] == None or settings["dynamic_rfi"]["ftp"]["ftp_pass"] == None or settings["dynamic_rfi"]["ftp"]["ftp_path"] == None or settings["dynamic_rfi"]["ftp"]["http_map"] == None:
print "Invalid Dynamic_RFI config!"
print "One of your FTP config values is missing!"
print "Fix that in config.py"
sys.exit(1)
if (config["p_proxy"] != None):
print "Using HTTP-Proxy '%s'." %(config["p_proxy"])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment