On 10/20/2011 11:23 AM, Fabian Groffen wrote:
> To retain the behaviour of echangelog, update the copyrights on modified
> files (mostly ebuilds) when necessary.  Also update the ChangeLog's
> copyright.
> 
> diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py
> --- a/pym/repoman/utilities.py
> +++ b/pym/repoman/utilities.py
> @@ -523,9 +523,77 @@
>  
>       return outvcs
>  
> +def update_copyright(fn_path, year, pretend):
> +     """
> +     Check file for a Copyright statement, and update its year.  The
> +     patterns used for replacing copyrights are taken from echangelog.
> +     Only the first lines of each file that start with a hash ('#') are
> +     considered, until a line is found that doesn't start with a hash.
> +     """

Thanks, I like that much better. :)
-- 
Thanks,
Zac

Reply via email to