blob: 20fd14c3150d2cd4a72de6663690051687dd2b7b [file] [log] [blame]
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Remove old version of chromeos-base/libchrome as it is being uprevved to a new
# revision and will use a different slot.
opkg="chromeos-base/libchrome"
export CLEAN_DELAY=0
update() {
local root=$1 board=$2 emerge
if [[ -z ${board} ]]; then
board="root"
emerge="sudo -E emerge"
else
emerge="emerge-${board}"
fi
if portageq has_version ${root} ${opkg}; then
${emerge} -Cq ${opkg}
fi
}
update / &
for board_root in /build/*; do
board=${board_root##*/}
update ${board_root} ${board} &
done
wait