diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-01-14 09:10:10 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-01-14 09:10:10 -0800 |
commit | 5690ca2b8114ae352c97aefeb2a7b240204e078f (patch) | |
tree | 04eb14c22b6d82c00818a1871f8a8cace5045d88 | |
parent | ee42bbb989cb31b0af76b6ae53ab238954a6f14e (diff) | |
download | portage-5690ca2b8114ae352c97aefeb2a7b240204e078f.tar.gz portage-5690ca2b8114ae352c97aefeb2a7b240204e078f.tar.bz2 portage-5690ca2b8114ae352c97aefeb2a7b240204e078f.zip |
egencache: escape newline instead of lstrip
-rwxr-xr-x | bin/egencache | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/egencache b/bin/egencache index 2f81966c6..b301115f2 100755 --- a/bin/egencache +++ b/bin/egencache @@ -503,12 +503,12 @@ class GenUseLocalDesc(object): errors='backslashreplace') output.write(_unicode_decode('\n')) else: - output.write(textwrap.dedent(_unicode_decode(''' + output.write(textwrap.dedent(_unicode_decode('''\ # This file is deprecated as per GLEP 56 in favor of metadata.xml. Please add # your descriptions to your package's metadata.xml ONLY. # * generated automatically using egencache * - '''.lstrip()))) + '''))) # The cmp function no longer exists in python3, so we'll # implement our own here under a slightly different name @@ -690,12 +690,12 @@ class GenChangeLogs(object): self.returncode |= 2 return - output.write(textwrap.dedent(_unicode_decode(''' + output.write(textwrap.dedent(_unicode_decode('''\ # ChangeLog for %s # Copyright 1999-%s Gentoo Foundation; Distributed under the GPL v2 # $Header: $ - ''' % (cp, time.strftime('%Y'))).lstrip())) + ''' % (cp, time.strftime('%Y'))))) # now grab all the commits commits = self.grab(['git', 'rev-list', 'HEAD', '--', '.']).split() |