bitbake: utils.py: Check for duplicate dependency entries
authorMark Hatle <mark.hatle@windriver.com>
Sun, 30 Sep 2012 00:01:44 +0000 (00:01 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 2 Oct 2012 10:40:53 +0000 (11:40 +0100)
commitf00814916a3172fae5e21c0544058eb589bfda5b
tree900cd4fd039e1bf8cea46553d59656b6bebba496
parent64e283750b9fa18018bfdd9dd157609e2dd4eed4
bitbake: utils.py: Check for duplicate dependency entries

explode_dep_versions is not able to have duplicate entries.  Previously
duplicate entries ended up with the last item being the one returned to
the caller.

We now detect a collision.  We do allow an empty item to have a comparison
added to it, or a duplicate with the same comparison without error.

When a collision is detected a ValueError exception is thrown.

Allowed:
   foo foo (= 1.12) foo

Invalid:
   foo (= 1.12) foo (= 1.13)

(Bitbake rev: d40448f0483a2959e9dcaac9b6dd35839f396a6e)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/utils.py