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)
downloadast2050-yocto-poky-a67b855df67230c2ab36d7bb3b2a3340e3975894.zip
ast2050-yocto-poky-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 b081b76..9e4b443 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -328,7 +328,7 @@ class Wget(FetchMethod):
if version:
package_custom_regex_comp = re.compile(
"(?P<name>%s)(?P<ver>%s)(?P<arch>%s)?[\.\-](?P<type>%s)$" %
- (version[0], pver_regex, parch_regex, psuffix_regex))
+ (re.escape(version[0]), pver_regex, parch_regex, psuffix_regex))
return package_custom_regex_comp
OpenPOWER on IntegriCloud