From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RH0WO-0003M0-Dv for garchives@archives.gentoo.org; Thu, 20 Oct 2011 21:51:28 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6DEB21C02A; Thu, 20 Oct 2011 21:51:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 833C721C02A for ; Thu, 20 Oct 2011 21:51:19 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F1B111B4009 for ; Thu, 20 Oct 2011 21:51:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 672BC80042 for ; Thu, 20 Oct 2011 21:51:18 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: Subject: [gentoo-commits] proj/portage:master commit in: pym/repoman/ X-VCS-Repository: proj/portage X-VCS-Files: pym/repoman/utilities.py X-VCS-Directories: pym/repoman/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: abff80f965637c23582d8f7c08da379b01555c43 Date: Thu, 20 Oct 2011 21:51:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 91e3174e9f8c2f5dbcd0a401f921bda6 commit: abff80f965637c23582d8f7c08da379b01555c43 Author: Zac Medico gentoo org> AuthorDate: Thu Oct 20 21:51:05 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Thu Oct 20 21:51:05 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Dabff80f9 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. --- pym/repoman/utilities.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py index ba34407..325ade5 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -665,8 +665,8 @@ def UpdateChangeLog(pkgdir, category, package, new, r= emoved, changed, \ clold_lines.append(line) if line_strip[:1] !=3D '#': break - line =3D re.sub(r'^(# Copyright) \d\d\d\d-\d\d\d\d', - r'\1 1999-%s' % year, line) + line =3D 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