# If something already worked, there is no need to continue,
# since we've already finished!
- if ret == SUCCESS:
+ if ret == rsutil.common.SUCCESS:
break
else:
logging.error ('Detected type failed for: %s' % self.p2file)
logging.debug ('The following information will help in writing a detector:')
logging.debug ('name_matches: %s' % self.name_matched_files)
logging.debug ('prot_matches: %s' % self.prot_matched_files)
- return -EDETECT
+ return -rsutil.common.EDETECT
# Make sure that something worked
- if ret != SUCCESS:
+ if ret != rsutil.common.SUCCESS:
logging.critical ('All types failed for: %s' % self.p2file)
return ret