diff options
Diffstat (limited to 'meta/classes/package_deb.bbclass')
-rw-r--r-- | meta/classes/package_deb.bbclass | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index 5d297939b6..2e8d17d3c7 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass | |||
@@ -230,9 +230,11 @@ def deb_write_pkg(pkg, d): | |||
230 | # '>' = greater or equal | 230 | # '>' = greater or equal |
231 | # adjust these to the '<<' and '>>' equivalents | 231 | # adjust these to the '<<' and '>>' equivalents |
232 | # | 232 | # |
233 | for dep in var: | 233 | for dep in list(var.keys()): |
234 | if '(' in dep: | 234 | if '(' in dep or '/' in dep: |
235 | newdep = re.sub(r'[(:)]', '__', dep) | 235 | newdep = re.sub(r'[(:)/]', '__', dep) |
236 | if newdep.startswith("__"): | ||
237 | newdep = "A" + newdep | ||
236 | if newdep != dep: | 238 | if newdep != dep: |
237 | var[newdep] = var[dep] | 239 | var[newdep] = var[dep] |
238 | del var[dep] | 240 | del var[dep] |