diff mbox series

scripts/feeds: warn when skipping core package override

Message ID 20200704025157.19097-1-computersforpeace@gmail.com
State New
Headers show
Series scripts/feeds: warn when skipping core package override | expand

Commit Message

Brian Norris July 4, 2020, 2:51 a.m. UTC
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 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/scripts/feeds b/scripts/feeds
index 69ab60278a1a..dc2b91266dcd 100755
--- a/scripts/feeds
+++ b/scripts/feeds
@@ -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;
 	}