summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-20 14:51:05 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-20 14:51:05 -0700
commitabff80f965637c23582d8f7c08da379b01555c43 (patch)
tree5c6803d5a0777fc4a99809b3351b8a2a6e978f69
parentfa0374f86b3aa1ba52bbb200195fd7b8b7754245 (diff)
downloadportage-abff80f965637c23582d8f7c08da379b01555c43.tar.gz
portage-abff80f965637c23582d8f7c08da379b01555c43.tar.bz2
portage-abff80f965637c23582d8f7c08da379b01555c43.zip
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.
-rw-r--r--pym/repoman/utilities.py4
1 files changed, 2 insertions, 2 deletions
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