mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 14:11:07 +02:00
update hooks: scrub some more old packages
These shouldn't be around anymore, so let's move them. BUG=None TEST=build_packages for x86-alex worked Change-Id: I95df39e40b62c919df0bafcb490d8caa48c04dd4 Reviewed-on: https://gerrit.chromium.org/gerrit/21806 Reviewed-by: David James <davidjames@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org> Commit-Ready: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
26fe5709a4
commit
a03fc04b22
28
chroot_version_hooks.d/32_scrub_old_pkgs
Normal file
28
chroot_version_hooks.d/32_scrub_old_pkgs
Normal file
@ -0,0 +1,28 @@
|
||||
# Copyright (c) 2012 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.
|
||||
|
||||
# We've been migrating packages of late, so make sure the old stuff gets
|
||||
# cleaned out.
|
||||
|
||||
pkgs=(
|
||||
dev-util/cvs
|
||||
dev-util/cvsps
|
||||
dev-util/git
|
||||
dev-util/subversion
|
||||
'<=media-libs/jpeg-6b-r9:62'
|
||||
'<media-libs/libpng-1.2.45-r2:1.2'
|
||||
net-misc/neon
|
||||
sys-apps/parted
|
||||
)
|
||||
|
||||
for board_root in /build/* ; do
|
||||
board=${board_root##*/}
|
||||
emerge_board=$(type -P emerge-${board} 2>/dev/null || true)
|
||||
if [[ -x "${emerge_board}" ]]; then
|
||||
CLEAN_DELAY=0 ${emerge_board} -q --unmerge "${pkgs[@]}" || true
|
||||
eclean-${board} -d packages || true
|
||||
fi
|
||||
done
|
||||
|
||||
exit 0
|
Loading…
x
Reference in New Issue
Block a user