Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: cros_mark_all_as_stable

Issue 3372002: cros_mark_all_as_stable: mark packages for all architectures, always (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git
Patch Set: Addressed comments Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Wrapper scripts around cros_mark_as_stable that marks all packages as stable 7 # Wrapper scripts around cros_mark_as_stable that marks all packages as stable
8 # that have CROS_WORKON_COMMIT that is different than the current HEAD commit 8 # that have CROS_WORKON_COMMIT that is different than the current HEAD commit
9 # of the corresponding git repository. 9 # of the corresponding git repository.
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 } 54 }
55 55
56 # For each package, compares the head commit id to the commit id in the ebuild. 56 # For each package, compares the head commit id to the commit id in the ebuild.
57 # If they do not match, add the package and its commit id into ${PACKAGE_LIST} 57 # If they do not match, add the package and its commit id into ${PACKAGE_LIST}
58 # and ${COMMIT_ID_LIST} 58 # and ${COMMIT_ID_LIST}
59 for package in ${PACKAGES}; do 59 for package in ${PACKAGES}; do
60 if package_is_blacklisted ${package}; then 60 if package_is_blacklisted ${package}; then
61 info "${package} blacklisted, skipping" 61 info "${package} blacklisted, skipping"
62 continue 62 continue
63 fi 63 fi
64 ebuild_path=$(${EQUERYCMD} which ${package}) || continue 64 # We need to pick up any stable ebuilds for any platform.
65 ebuild_path=$(ACCEPT_KEYWORDS="arm x86 amd64" ${EQUERYCMD} which ${package})\
66 || continue
65 # Get 9999 ebuild path to see if it got changed. 67 # Get 9999 ebuild path to see if it got changed.
66 ebuild_9999_path=$(ACCEPT_KEYWORDS=~* ${EQUERYCMD} which ${package}) \ 68 ebuild_9999_path=$(ACCEPT_KEYWORDS="~*" ${EQUERYCMD} which ${package}) \
67 || continue 69 || continue
68 # Sets ${CROS_WORKON_SRCDIR} from the ebuild. 70 # Sets ${CROS_WORKON_SRCDIR} from the ebuild.
69 eval $(${EBUILDCMD} ${ebuild_path} info) &> /dev/null || continue 71 eval $(${EBUILDCMD} ${ebuild_path} info) &> /dev/null || continue
70 head_commit=$( cd "${CROS_WORKON_SRCDIR}" &&\ 72 head_commit=$( cd "${CROS_WORKON_SRCDIR}" &&\
71 bash -c "${GRAB_HEAD_COMMIT_CMD}" ) || continue 73 bash -c "${GRAB_HEAD_COMMIT_CMD}" ) || continue
72 egit_commit=$(\ 74 egit_commit=$(\
73 eval echo $(grep CROS_WORKON_COMMIT ${ebuild_path} | cut -f 2 -d '=')) ||\ 75 eval echo $(grep CROS_WORKON_COMMIT ${ebuild_path} | cut -f 2 -d '=')) ||\
74 echo "No CROS_WORKON_COMMIT found in ${ebuild_path}" 76 echo "No CROS_WORKON_COMMIT found in ${ebuild_path}"
75 if [[ ${head_commit} != ${egit_commit} ]] && \ 77 if [[ ${head_commit} != ${egit_commit} ]] && \
76 [ -n "${head_commit}" ]; then 78 [ -n "${head_commit}" ]; then
(...skipping 16 matching lines...) Expand all
93 if [ -n "${PACKAGE_LIST}" ] ; then 95 if [ -n "${PACKAGE_LIST}" ] ; then
94 info "Candidate package list ${PACKAGE_LIST}" 96 info "Candidate package list ${PACKAGE_LIST}"
95 info "With commit id list ${COMMIT_ID_LIST}" 97 info "With commit id list ${COMMIT_ID_LIST}"
96 98
97 ./cros_mark_as_stable --board ${FLAGS_board} -p "${PACKAGE_LIST}" \ 99 ./cros_mark_as_stable --board ${FLAGS_board} -p "${PACKAGE_LIST}" \
98 -i "${COMMIT_ID_LIST}" -t ${FLAGS_tracking_branch} commit || \ 100 -i "${COMMIT_ID_LIST}" -t ${FLAGS_tracking_branch} commit || \
99 die "Could not mark all packages as stable" 101 die "Could not mark all packages as stable"
100 else 102 else
101 info "No candidate packages to be marked" 103 info "No candidate packages to be marked"
102 fi 104 fi
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698