1 |
On 10/20/2011 11:23 AM, Fabian Groffen wrote: |
2 |
> To retain the behaviour of echangelog, update the copyrights on modified |
3 |
> files (mostly ebuilds) when necessary. Also update the ChangeLog's |
4 |
> copyright. |
5 |
> |
6 |
> diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py |
7 |
> --- a/pym/repoman/utilities.py |
8 |
> +++ b/pym/repoman/utilities.py |
9 |
> @@ -523,9 +523,77 @@ |
10 |
> |
11 |
> return outvcs |
12 |
> |
13 |
> +def update_copyright(fn_path, year, pretend): |
14 |
> + """ |
15 |
> + Check file for a Copyright statement, and update its year. The |
16 |
> + patterns used for replacing copyrights are taken from echangelog. |
17 |
> + Only the first lines of each file that start with a hash ('#') are |
18 |
> + considered, until a line is found that doesn't start with a hash. |
19 |
> + """ |
20 |
|
21 |
Thanks, I like that much better. :) |
22 |
-- |
23 |
Thanks, |
24 |
Zac |