scripts/feeds: warn when skipping core package override
authorBrian Norris <computersforpeace@gmail.com>
Sat, 4 Jul 2020 02:51:57 +0000 (19:51 -0700)
committerPaul Spooren <mail@aparcar.org>
Wed, 9 Dec 2020 21:30:07 +0000 (11:30 -1000)
Otherwise, a n00b like myself can get quite confused when moving a
package from core to feeds, for example.

(Hint: one *really* needs to clear out the tmp/info/.packageinfo...
entries for the stale package, but '-f' works as well.)

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
scripts/feeds

index 22d4f8e8f4f5e8001c8cebdb8046f8359e9d25c0..e402200194123968bf7505067e887668e68f1002 100755 (executable)
@@ -536,7 +536,10 @@ sub install_src {
        # If it's a core package and we don't want to override, just return
        my $override = 0;
        if (is_core_src($name)) {
-               return 0 unless $force;
+               if (!$force) {
+                       warn "Not overriding core package $name; use -f to force\n";
+                       return 0;
+               }
                $override = 1;
        }