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

Unified Diff: cros_workon

Issue 6268012: cros_workon: remove logic for handling ~ in workon file (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cros_workon
diff --git a/cros_workon b/cros_workon
index c48b6431e512c6049badc6aab2c3aaeafd00f070..f12bc7a9e44a3a474b036108a2e9b65a40dfee71 100755
--- a/cros_workon
+++ b/cros_workon
@@ -135,7 +135,7 @@ canonicalize_names () {
# Display ebuilds currently part of the live branch and open for development.
show_live_ebuilds () {
- sed -n 's/^[~=]\(.*\)-9999$/\1/p' "${WORKON_FILE}"
+ sed -n 's/^=\(.*\)-9999$/\1/p' "${WORKON_FILE}"
}
# Display ebuilds currently part of the live branch and open for development
@@ -144,7 +144,7 @@ show_all_live_ebuilds () {
for workon_file in ${WORKON_DIR}/*; do
if [ -s "${workon_file}" ]; then
echo -e "${V_BOLD_GREEN}$(basename ${workon_file}):${V_VIDOFF}"
- sed -n 's/^[~=]\(.*\)-9999$/ \1/p' "${workon_file}"
+ sed -n 's/^=\(.*\)-9999$/ \1/p' "${workon_file}"
echo ""
fi
done
@@ -176,7 +176,7 @@ ebuild_to_live () {
local atoms_success=""
for atom in ${atoms}; do
- if ! grep -qx "[~=]${atom}-9999" "${WORKON_FILE}" ; then
+ if ! grep -qx "=${atom}-9999" "${WORKON_FILE}" ; then
if sudo bash -c "echo \"=${atom}-9999\" >> \"${WORKON_FILE}\""; then
atoms_success="${atoms_success} ${atom}"
fi
@@ -194,8 +194,8 @@ ebuild_to_stable () {
local atoms_success=""
for atom in ${atoms}; do
- if grep -qx "[~=]${atom}-9999" "${WORKON_FILE}" ; then
- if sudo sed -e "/^[~=]${atom/\//\\/}-9999\$/d" -i "${WORKON_FILE}"; then
+ if grep -qx "=${atom}-9999" "${WORKON_FILE}" ; then
+ if sudo sed -e "/^=${atom/\//\\/}-9999\$/d" -i "${WORKON_FILE}"; then
atoms_success="${atoms_success} ${atom}"
fi
else
« 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