Speed up feeds_update

Don't remove all installed packages at the start of
feeds_update. Remove duplicate feed installs as named feeds are
included with the install -a command later.
This commit is contained in:
Jonas Höglund 2016-08-25 15:46:49 +02:00
parent 869e86677b
commit 5ae9fb9733

View file

@ -4,7 +4,7 @@ function feeds_update {
developer=0
override=1
start=$(date -u +'%s');
while getopts "n" opt; do
case $opt in
n)
@ -18,25 +18,18 @@ function feeds_update {
cp .config .genconfig_config_bak
rm -rf package/feeds
#if -d argument is passed, clone feeds with ssh instead of http
if [ $developer == 1 ]; then
./scripts/feeds update -g
else
./scripts/feeds update
fi
# replace core packages with iopsys versions
if [ $override == 1 ]; then
./scripts/feeds install -f -p feed_inteno_openwrt -a
fi
# install our feeds first to enable replacing a package in another feed
./scripts/feeds install -p feed_inteno_juci -a
./scripts/feeds install -p feed_inteno_packages -a
./scripts/feeds install -p feed_inteno_broadcom -a
# targets need to be installed explicitly
./scripts/feeds install -p feed_inteno_targets iopsys-brcm63xx-mips
./scripts/feeds install -p feed_inteno_targets iopsys-brcm63xx-arm