scripts/feed: no warn on toolchain/linux overwrite
authorPaul Spooren <mail@aparcar.org>
Sun, 27 Dec 2020 21:26:37 +0000 (11:26 -1000)
committerPaul Spooren <mail@aparcar.org>
Thu, 7 Jan 2021 00:04:34 +0000 (14:04 -1000)
The recent 7f285d "scripts/feeds: warn when skipping core package
override" floods SDK output with warning of overwriting "linux" and
"toolchain" core packages. This should be ignored as these are not
regular packages added via feeds.

While at it slightly improve the warning string.

Signed-off-by: Paul Spooren <mail@aparcar.org>
scripts/feeds

index 122f8568cb2ccd7c2ab8f753e27bef12e8e893fa..eee0a50717ce8b09bf2250f886b35a7c137780a7 100755 (executable)
@@ -537,7 +537,9 @@ sub install_src {
        my $override = 0;
        if (is_core_src($name)) {
                if (!$force) {
-                       warn "Not overriding core package $name; use -f to force\n";
+                       if ($name ne "toolchain" && $name ne "linux") {
+                               warn "WARNING: Not overriding core package '$name'; use -f to force\n";
+                       }
                        return 0;
                }
                $override = 1;