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 1RH9gr-0002cU-LM for garchives@archives.gentoo.org; Fri, 21 Oct 2011 07:38:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8027221C147; Fri, 21 Oct 2011 07:38:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4FB1421C147 for ; Fri, 21 Oct 2011 07:38:46 +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 C81FA1B402F for ; Fri, 21 Oct 2011 07:38:45 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id CF1A880042 for ; Fri, 21 Oct 2011 07:38:44 +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: <9f6fe53436112b7cd764b0c2c24ee2e59fa8ad8f.zmedico@gentoo> 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: 9f6fe53436112b7cd764b0c2c24ee2e59fa8ad8f Date: Fri, 21 Oct 2011 07:38:44 +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: 071bffa32e396e7061bf584a26b19455 commit: 9f6fe53436112b7cd764b0c2c24ee2e59fa8ad8f Author: Zac Medico gentoo org> AuthorDate: Fri Oct 21 07:37:32 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Fri Oct 21 07:37:32 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D9f6fe534 update_copyright: make pretend a keyword arg --- 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 eecd46f..fa58346 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -562,7 +562,7 @@ def _update_copyright_year(year, line): line =3D _unicode_decode(line) return line =20 -def update_copyright(fn_path, year, pretend): +def update_copyright(fn_path, year, pretend=3DFalse): """ Check file for a Copyright statement, and update its year. The patterns used for replacing copyrights are taken from echangelog. @@ -668,7 +668,7 @@ def UpdateChangeLog(pkgdir, user, msg, skel_path, cat= egory, package, for fn in chain(new, changed): if fn.endswith('.diff') or fn.endswith('.patch'): continue - update_copyright(os.path.join(pkgdir, fn), year, pretend) + update_copyright(os.path.join(pkgdir, fn), year, pretend=3Dpretend) =20 cl_path =3D os.path.join(pkgdir, 'ChangeLog') clold_lines =3D []