diff options
-rw-r--r-- | bitbake/lib/bb/utils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index c540b49cf6..8b739d7849 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -187,7 +187,7 @@ def explode_deps(s): | |||
187 | #r[-1] += ' ' + ' '.join(j) | 187 | #r[-1] += ' ' + ' '.join(j) |
188 | return r | 188 | return r |
189 | 189 | ||
190 | def explode_dep_versions2(s): | 190 | def explode_dep_versions2(s, *, sort=True): |
191 | """ | 191 | """ |
192 | Take an RDEPENDS style string of format: | 192 | Take an RDEPENDS style string of format: |
193 | "DEPEND1 (optional version) DEPEND2 (optional version) ..." | 193 | "DEPEND1 (optional version) DEPEND2 (optional version) ..." |
@@ -250,7 +250,8 @@ def explode_dep_versions2(s): | |||
250 | if not (i in r and r[i]): | 250 | if not (i in r and r[i]): |
251 | r[lastdep] = [] | 251 | r[lastdep] = [] |
252 | 252 | ||
253 | r = collections.OrderedDict(sorted(r.items(), key=lambda x: x[0])) | 253 | if sort: |
254 | r = collections.OrderedDict(sorted(r.items(), key=lambda x: x[0])) | ||
254 | return r | 255 | return r |
255 | 256 | ||
256 | def explode_dep_versions(s): | 257 | def explode_dep_versions(s): |