summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_deb.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package_deb.bbclass')
-rw-r--r--meta/classes/package_deb.bbclass10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index d273cb0f84..eed9b8ac3b 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -335,12 +335,22 @@ python do_package_deb () {
335 mapping_rename_hook(localdata) 335 mapping_rename_hook(localdata)
336 336
337 def debian_cmp_remap(var): 337 def debian_cmp_remap(var):
338 # dpkg does not allow for '(' or ')' in a dependency name
339 # replace these instances with '__' and '__'
340 #
338 # In debian '>' and '<' do not mean what it appears they mean 341 # In debian '>' and '<' do not mean what it appears they mean
339 # '<' = less or equal 342 # '<' = less or equal
340 # '>' = greater or equal 343 # '>' = greater or equal
341 # adjust these to the '<<' and '>>' equivalents 344 # adjust these to the '<<' and '>>' equivalents
342 # 345 #
343 for dep in var: 346 for dep in var:
347 if '(' in dep:
348 newdep = dep.replace('(', '__')
349 newdep = newdep.replace(')', '__')
350 if newdep != dep:
351 var[newdep] = var[dep]
352 del var[dep]
353 for dep in var:
344 for i, v in enumerate(var[dep]): 354 for i, v in enumerate(var[dep]):
345 if (v or "").startswith("< "): 355 if (v or "").startswith("< "):
346 var[dep][i] = var[dep][i].replace("< ", "<< ") 356 var[dep][i] = var[dep][i].replace("< ", "<< ")