| Message ID | 20251208191739.3238955-1-l.stach@pengutronix.de |
|---|---|
| State | New |
| Headers | show |
| Series | oe-depends-dot: handle packages with period in name | expand |
diff --git a/scripts/oe-depends-dot b/scripts/oe-depends-dot index d02ee455f60f..10e8b1d3872d 100755 --- a/scripts/oe-depends-dot +++ b/scripts/oe-depends-dot @@ -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:
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> --- An example of a problematic package is gstreamer1.0-plugins-base. --- scripts/oe-depends-dot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)