print('')
print('---------------------------------------------------')
log.info("Performing %r ...", filename)
+ file_changed = False
new_lines = []
'Invalid line %r in %r (%d) found.', line.rstrip(),
filename, line_nr)
new_lines.append('# ' + line.strip())
+ file_changed = True
continue
mypkg = match.group(1)
if self.verbose:
'Invalid atom %r in %r (%d) found.', mypkg,
filename, line_nr)
new_lines.append('# ' + line.strip())
+ file_changed = True
continue
log.debug("Checking atom %r in %r (%d) ...", mypkg,
filename, line_nr)
'Invalid Package name %r in %r (%d) found.', mypkg,
filename, line_nr)
new_lines.append('# ' + line.strip())
+ file_changed = True
continue
valid = None
if isjustname(my_cpv):
else:
log.warning("Atom %r in %r (%d) seems to be invalid.", mypkg,
filename, line_nr)
+ file_changed = True
new_lines.append('# ' + line.strip())
print('')
print('----------')
+ if not file_changed:
+ log.info("No changes on %r.", filename)
+ return
+
log.info("Rewriting %r ...", filename)
if self.simulate:
if self.verbose: