summaryrefslogtreecommitdiffstats
path: root/pym/repoman
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-21 00:37:32 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-21 00:37:32 -0700
commit9f6fe53436112b7cd764b0c2c24ee2e59fa8ad8f (patch)
treece8ab44c1f18a01b5d3e22219d637db2a7ae0155 /pym/repoman
parentbcde93a8752d428ac2ecdcf2608c0c1d75ee5be2 (diff)
downloadportage-9f6fe53436112b7cd764b0c2c24ee2e59fa8ad8f.tar.gz
portage-9f6fe53436112b7cd764b0c2c24ee2e59fa8ad8f.tar.bz2
portage-9f6fe53436112b7cd764b0c2c24ee2e59fa8ad8f.zip
update_copyright: make pretend a keyword arg
Diffstat (limited to 'pym/repoman')
-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 eecd46ffa..fa5834618 100644
--- a/pym/repoman/utilities.py
+++ b/pym/repoman/utilities.py
@@ -562,7 +562,7 @@ def _update_copyright_year(year, line):
line = _unicode_decode(line)
return line
-def update_copyright(fn_path, year, pretend):
+def update_copyright(fn_path, year, pretend=False):
"""
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, category, 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=pretend)
cl_path = os.path.join(pkgdir, 'ChangeLog')
clold_lines = []