blob: a68998f9c39261e9403c1e9936311ce4e1ba672c [file] [log] [blame]
# Copyright 2014 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.
# Some people have chromeos-base/chromeos-test listed in their @world set which
# causes binpkg-only upgrades to fail: we aren't building this package anymore
# as we've converted everyone to virtual/target-os-test. So clean it out.
sudo sed -i -e "/^${package//\//\/}$/d" /build/*/var/lib/portage/world
for sysroot in /build/*; do
if qlist --root "${sysroot}" -ICe ${package} >&/dev/null; then
info "Cleaning ${package} from ${sysroot}"
sudo qmerge --root "${sysroot}" -yU ${package}