]> code.ossystems Code Review - openembedded-core.git/commitdiff
buildhistory: call a dependency parser only on actual dependency lists
authorAlexander Kanavin <alex.kanavin@gmail.com>
Wed, 24 Apr 2019 16:34:15 +0000 (18:34 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 24 Apr 2019 23:05:15 +0000 (00:05 +0100)
Previously it was also called on filelists and possibly other items which
broke the parser.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/buildhistory_analysis.py

index ad7fceb8bbccf6799018d4eee35c1e8332c5385f..d3cde4f65093cc7ab188e770a4c9ffcbcc9f72d0 100644 (file)
@@ -127,7 +127,7 @@ class ChangeRecord:
             removed = list(set(aitems) - set(bitems))
             added = list(set(bitems) - set(aitems))
 
-            if not removed and not added:
+            if not removed and not added and self.fieldname in ['RPROVIDES', 'RDEPENDS', 'RRECOMMENDS', 'RSUGGESTS', 'RREPLACES', 'RCONFLICTS']:
                 depvera = bb.utils.explode_dep_versions2(self.oldvalue, sort=False)
                 depverb = bb.utils.explode_dep_versions2(self.newvalue, sort=False)
                 for i, j in zip(depvera.items(), depverb.items()):