summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2015-01-19 17:34:25 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-01-21 14:37:39 +0000
commita67b855df67230c2ab36d7bb3b2a3340e3975894 (patch)
treebd23c97e18b1abc3748fad96292ed7dfb9a70966
parentc6f933e5cfdaddff9e7a5f1b73af32818da7d5eb (diff)
downloadpoky-a67b855df67230c2ab36d7bb3b2a3340e3975894.tar.gz
bitbake: bb/fetch2/wget.py: latest_versionstring escape packagename when built regex
When built package regex for use in searching upstream version in sites, the package name need to be escaped to avoid usage of special regex char. For example when search for gtk+, '+' need to be escaped. (Bitbake rev: 1aa1de4b0c5bd34466e04844bbc371933736be59) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/fetch2/wget.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py
index b081b7621b..9e4b443421 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -328,7 +328,7 @@ class Wget(FetchMethod):
328 if version: 328 if version:
329 package_custom_regex_comp = re.compile( 329 package_custom_regex_comp = re.compile(
330 "(?P<name>%s)(?P<ver>%s)(?P<arch>%s)?[\.\-](?P<type>%s)$" % 330 "(?P<name>%s)(?P<ver>%s)(?P<arch>%s)?[\.\-](?P<type>%s)$" %
331 (version[0], pver_regex, parch_regex, psuffix_regex)) 331 (re.escape(version[0]), pver_regex, parch_regex, psuffix_regex))
332 332
333 return package_custom_regex_comp 333 return package_custom_regex_comp
334 334