[PATCH 2/2] scripts/feeds: force kernel package scan after a target installation

Andrey Jr. Melnikov temnota.am at gmail.com
Thu Sep 19 04:01:56 PDT 2024


Thomas Richard via openwrt-devel <openwrt-devel at lists.openwrt.org> wrote:

[...]

> diff --git a/scripts/feeds b/scripts/feeds
> index 7cbe07f58e..a48be670f0 100755
> --- a/scripts/feeds
> +++ b/scripts/feeds
> @@ -461,6 +461,11 @@ sub do_install_target($) {
>                 return 1;
>         }
>  
> +       # Clean packageinfo of linux kernel to force the scan.
> +       # Otherwise kernel modules defined at target level are not scanned, as the
> +       # linux kernel package was scanned before the installation of the target.
> +	  system("rm tmp/info/.packageinfo-kernel_linux");
Why spawn shell with rm? Use 'unlink "tmp/info/.packageinfo-kernel_linux";' here.




More information about the openwrt-devel mailing list