aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2017-03-01 11:17:15 -0800
committerBrian Dolbec <dolsen@gentoo.org>2017-03-01 11:17:15 -0800
commit36cccbbf3f4613e177d2fb735c8f6ddc73799eba (patch)
treefbf0830dd85e68536341abf36e1a78fd43d24a9a
parentrepoman: Don't update years in non-Gentoo copyright lines bug 611296 (diff)
downloadportage-36cccbbf3f4613e177d2fb735c8f6ddc73799eba.tar.gz
portage-36cccbbf3f4613e177d2fb735c8f6ddc73799eba.tar.bz2
portage-36cccbbf3f4613e177d2fb735c8f6ddc73799eba.zip
repoman: Fix regular expressions matching the copyright line
Fixes commit: d38405be3e0d2 The previous commit broke copyright updating for Changelogs which have the license on the same line.
-rw-r--r--repoman/pym/repoman/copyrights.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/repoman/pym/repoman/copyrights.py b/repoman/pym/repoman/copyrights.py
index 7a36ff30d..94257c942 100644
--- a/repoman/pym/repoman/copyrights.py
+++ b/repoman/pym/repoman/copyrights.py
@@ -15,9 +15,9 @@ from portage import util
_copyright_re1 = \
- re.compile(br'^(# Copyright \d\d\d\d)-\d\d\d\d( Gentoo Foundation)$')
+ re.compile(br'^(# Copyright \d\d\d\d)-\d\d\d\d( Gentoo Foundation)\b')
_copyright_re2 = \
- re.compile(br'^(# Copyright )(\d\d\d\d)( Gentoo Foundation)$')
+ re.compile(br'^(# Copyright )(\d\d\d\d)( Gentoo Foundation)\b')
class _copyright_repl(object):