Another consequence of unit_description -> name.

This commit is contained in:
Eric S. Raymond 2008-03-16 18:30:42 +00:00
parent 9b72d2af84
commit 34180d285a

View file

@ -2143,6 +2143,9 @@ if __name__ == '__main__':
if ".user_description" in line:
print '"%s", line %d: .user_description may need hand fixup' % \
(filename, lineno)
# Inside themes
if within("theme"):
line = line.replace("[unit_description]", "[unit_name]")
# Report the changes
if verbose > 0 and transformed != line:
msg = "%s, line %d: %s -> %s" % \