blob: fbb17a693afa66fc3401b9a1d3ddb45bae1e61e8 [file] [log] [blame]
# Copyright (c) 2013 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.
# Fix the SLOT logic while updating gdb.
cd /var/db/pkg
for pkg in cross-*/gdb-* ; do
[[ -d ${pkg} ]] || break
sudo sed -i 's:.*:0:' ${pkg}/SLOT
bzcat ${pkg}/environment.bz2 | sed '/^declare -x SLOT=/s:=.*:=0:' \
| bzip2 > "${tmpfile}"
sudo mv "${tmpfile}" ${pkg}/environment.bz2