summaryrefslogtreecommitdiffstats
path: root/meta/classes/cpan-base.bbclass
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-09-17 12:59:22 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-19 10:33:14 (GMT)
commit4335ee7063162bfec6e341866f1803623fbefd6c (patch)
tree4a9fab1c37aaadb4587e3a4d8d8ea3baccf07317 /meta/classes/cpan-base.bbclass
parent2697d3984f8144ab001ed70ca713a10f6d1d83be (diff)
downloadpoky-4335ee7063162bfec6e341866f1803623fbefd6c.tar.gz
cpan-base.bbclass: use raw string for regexp
This eliminates a deprecation warning and a future error as stipulated by https://docs.python.org/3/library/re.html (From OE-Core rev: 1753a8d8fd2e9d98255beb81428f70cdf3421321) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cpan-base.bbclass')
-rw-r--r--meta/classes/cpan-base.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/cpan-base.bbclass b/meta/classes/cpan-base.bbclass
index 9758065..93d11e1 100644
--- a/meta/classes/cpan-base.bbclass
+++ b/meta/classes/cpan-base.bbclass
@@ -20,7 +20,7 @@ PERLLIBDIRS:class-native = "${libdir}/perl5"
20def cpan_upstream_check_pattern(d): 20def cpan_upstream_check_pattern(d):
21 for x in (d.getVar('SRC_URI') or '').split(' '): 21 for x in (d.getVar('SRC_URI') or '').split(' '):
22 if x.startswith("https://cpan.metacpan.org"): 22 if x.startswith("https://cpan.metacpan.org"):
23 _pattern = x.split('/')[-1].replace(d.getVar('PV'), '(?P<pver>\d+.\d+)') 23 _pattern = x.split('/')[-1].replace(d.getVar('PV'), r'(?P<pver>\d+.\d+)')
24 return _pattern 24 return _pattern
25 return '' 25 return ''
26 26