More tweaking on --update

This commit is contained in:
Bernardo Damele 2010-01-18 15:20:50 +00:00
parent 051db588a5
commit 5c58747740

View File

@ -218,15 +218,14 @@ def __updateSqlmap():
def notify(event_dict): def notify(event_dict):
action = str(event_dict['action']) action = str(event_dict['action'])
index = action.find('_')
prefix = action[index + 1].upper() if index != -1 else action.capitalize()
if action.find('_update') != -1: if action.find('_update') != -1:
return return
index = action.find('_')
prefix = action[index + 1].upper() if index != -1 else action.capitalize()
if action.find('_completed') == -1: if action.find('_completed') == -1:
print "%s %s" % (prefix, event_dict['path']) print "%s\t%s" % (prefix, event_dict['path'])
else: else:
revision = str(event_dict['revision']) revision = str(event_dict['revision'])
index = revision.find('number ') index = revision.find('number ')