aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2018-09-20 13:35:42 -0700
committerZac Medico <zmedico@gentoo.org>2018-09-22 01:23:14 -0700
commit4ff4e4200b984a88109b10de9e82b20451751aee (patch)
treee94950be36108e50ca30dbe58f2d540db6c814c2 /repoman/lib/repoman/copyrights.py
parentecompress: Run compression in parallel (diff)
downloadportage-4ff4e4200b984a88109b10de9e82b20451751aee.tar.gz
portage-4ff4e4200b984a88109b10de9e82b20451751aee.tar.bz2
portage-4ff4e4200b984a88109b10de9e82b20451751aee.zip
repoman: regen thick manifest after copyright update (bug 656698)
Bug: https://bugs.gentoo.org/656698
Diffstat (limited to 'repoman/lib/repoman/copyrights.py')
-rw-r--r--repoman/lib/repoman/copyrights.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/repoman/lib/repoman/copyrights.py b/repoman/lib/repoman/copyrights.py
index 1eaaab660..275dcbc3f 100644
--- a/repoman/lib/repoman/copyrights.py
+++ b/repoman/lib/repoman/copyrights.py
@@ -67,6 +67,15 @@ def update_copyright(fn_path, year, pretend=False):
Files are read and written in binary mode, so that this function
will work correctly with files encoded in any character set, as
long as the copyright statements consist of plain ASCII.
+
+ @param fn_path: file path
+ @type str
+ @param year: current year
+ @type str
+ @param pretend: pretend mode
+ @type bool
+ @rtype: bool
+ @return: True if copyright update was needed, False otherwise
"""
try:
@@ -120,3 +129,4 @@ def update_copyright(fn_path, year, pretend=False):
else:
util.apply_stat_permissions(fn_path, fn_stat)
fn_hdl.close()
+ return difflines > 3