]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
oe-depends-dot: handle packages with period in name
authorLucas Stach <l.stach@pengutronix.de>
Mon, 8 Dec 2025 19:17:39 +0000 (20:17 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Dec 2025 11:04:29 +0000 (11:04 +0000)
oe-depends-dot currently fails to look up the key when the package
name contains a period, as the key gets truncated in the split from
the task. Handle this by only splitting a single time from the right.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-depends-dot

index d02ee455f60f16243dbb588b033a619b013dda01..10e8b1d3872d383e038a17eff03a3238bbb1f55e 100755 (executable)
@@ -114,8 +114,8 @@ Reduce the .dot file packages only, no tasks:
                 if key == "meta-world-pkgdata":
                     continue
                 dep = m.group(2)
-                key = key.split('.')[0]
-                dep = dep.split('.')[0]
+                key = key.rsplit('.', 1)[0]
+                dep = dep.rsplit('.', 1)[0]
                 if key == dep:
                     continue
                 if key in depends: