diff options
author | Daniel Dickinson <lede@daniel.thecshore.com> | 2016-07-04 04:43:02 -0400 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-07-05 22:59:13 +0200 |
commit | 34527688fcece24641b5ca0bb472c5359df371af (patch) | |
tree | dd90b671ee9f91148696bf09b1a8e021a24114d0 | |
parent | a7f6dc9f8b9602441a1b56bbe73d80711e2c640f (diff) | |
download | upstream-34527688fcece24641b5ca0bb472c5359df371af.tar.gz upstream-34527688fcece24641b5ca0bb472c5359df371af.tar.bz2 upstream-34527688fcece24641b5ca0bb472c5359df371af.zip |
scripts/feeds: Prevent .config autocreation
When using scripts/feeds upgrade the .config needs to be
updated but the code to do so was also autocreating a
.config if one didn't exist. This is counter-productive
when you have not yet used menuconfig (or other config targets)
because things like selecting or deselecting CONFIG_ALL
(to build all package by default) only works if the
package selection has not already been done via an
existing .config selection.
Signed-off-by: Daniel Dickinson <lede@daniel.thecshore.com>
-rwxr-xr-x | scripts/feeds | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/feeds b/scripts/feeds index 55a8dd94ea..045835c0cc 100755 --- a/scripts/feeds +++ b/scripts/feeds @@ -534,6 +534,11 @@ sub install_package { sub refresh_config { my $default = shift; + # Don't create .config if it doesn't already exist so that making a + # config only occurs when the user intends it do (however we do + # want to refresh an existing config). + return if not (-e '.config'); + # workaround for timestamp check system("rm -f tmp/.packageinfo"); |