UpdateChangeLog: don't hardcode 1999 copyright
authorZac Medico <zmedico@gentoo.org>
Thu, 20 Oct 2011 21:51:05 +0000 (14:51 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 20 Oct 2011 21:51:05 +0000 (14:51 -0700)
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.

pym/repoman/utilities.py

index ba344078d2d3666587d58a3233cfeeb229f909c4..325ade509d94bdc7ee92382cc7d4a6a3b38a801c 100644 (file)
@@ -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