update_copyright: make pretend a keyword arg
authorZac Medico <zmedico@gentoo.org>
Fri, 21 Oct 2011 07:37:32 +0000 (00:37 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 21 Oct 2011 07:37:32 +0000 (00:37 -0700)
pym/repoman/utilities.py

index eecd46ffa7f7523bfd4185cc446950c528fb80f0..fa583461816be7fd66f45ea5909967fd16e03054 100644 (file)
@@ -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 = []