blob: 4a3e91dc6da5cbc27e8c923bd121c97c0cc08d6c [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-dev 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-dev. So clean it out.
package="chromeos-base/chromeos-dev"
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}
fi
done