aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2020-07-03 19:51:57 -0700
committerPaul Spooren <mail@aparcar.org>2020-12-09 11:30:07 -1000
commit7f285d0b436c4b05a89c78ef3f1910d6f78040da (patch)
tree381aae3787af501520fbbb061ad38e195fd86f27 /scripts
parent3f165fa7ccc24a1927483457cd2a20511460550f (diff)
downloadupstream-7f285d0b436c4b05a89c78ef3f1910d6f78040da.tar.gz
upstream-7f285d0b436c4b05a89c78ef3f1910d6f78040da.tar.bz2
upstream-7f285d0b436c4b05a89c78ef3f1910d6f78040da.zip
scripts/feeds: warn when skipping core package override
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/feeds5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/feeds b/scripts/feeds
index 22d4f8e8f4..e402200194 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;
}