]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
patchtest: ignore patch file metadata from SRC_URI
authorGyorgy Sarvari <skandigraun@gmail.com>
Mon, 15 Sep 2025 09:02:07 +0000 (11:02 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Sep 2025 10:08:20 +0000 (11:08 +0100)
commit7c0febd01e39c6d6a8b7821adcda5f397d597bee
tree0c3f4a85d8bac5bc4b76a629bee3fd337239bd7f
parentdf73a692049675b7dc110779b7853f2e79a61737
patchtest: ignore patch file metadata from SRC_URI

The test_src_uri_left_files check prepares a list of patchfiles SRC_URI from
before and after the patch is applied, looking for dangling patches.

The name of the files in this list can be incorrect, in case the URI contains
some extra metadata (like patchdir), because os.path.basename will use the last portion
of the line being processed, which is independent from the files in question.

To avoid this, try to use only the first portion of URI, before any extra metadata.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/patchtest/tests/test_metadata.py