From: Zac Medico Date: Thu, 20 Oct 2011 21:51:05 +0000 (-0700) Subject: UpdateChangeLog: don't hardcode 1999 copyright X-Git-Tag: v2.2.0_alpha70~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=abff80f965637c23582d8f7c08da379b01555c43;p=portage.git UpdateChangeLog: don't hardcode 1999 copyright We want repoman to be applicable to as many repositories as possible. If necessary, we can add another layout.conf attribute that configures the copyright start years for all files. --- diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py index ba344078d..325ade509 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -665,8 +665,8 @@ def UpdateChangeLog(pkgdir, category, package, new, removed, changed, \ clold_lines.append(line) if line_strip[:1] != '#': break - line = re.sub(r'^(# Copyright) \d\d\d\d-\d\d\d\d', - r'\1 1999-%s' % year, line) + line = re.sub(r'^(# Copyright \d\d\d\d)-\d\d\d\d', + r'\1-%s' % year, line) clnew_lines.append(line) if not line_strip: break