Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Better error trapping in repotool.
  • Loading branch information
inducer committed Aug 29, 2011
1 parent b088d85 commit 4c585a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion list-active-repos.py
Expand Up @@ -18,8 +18,10 @@ def read_repo_list(name):
all_repos.remove(x)
except ValueError:
print>>sys.stderr, "----------------------------------------------------------------------------------"
print>>sys.stderr, "*** ERROR: %s in excluded-subprojects isn't a valid subproject to start with" % x
print>>sys.stderr, "*** ERROR: %s in excluded-subprojects isn't a valid subproject" % x
print>>sys.stderr, "----------------------------------------------------------------------------------"
import sys
sys.exit(1)

for x in all_repos:
print join(my_dir, x)
9 changes: 6 additions & 3 deletions repotool
Expand Up @@ -45,6 +45,9 @@ function show_help()
DIR=`dirname "$0"`
MYDIR=$(cd "$DIR" && pwd)

ACTIVE_REPOS="$(list_active_repos)"
ALL_REPOS="$(list_all_repos)"

CMD="$1"
shift
case "$CMD" in
Expand Down Expand Up @@ -146,7 +149,7 @@ case "$CMD" in

clean )
PREFIX="$1"
for n in `list_active_repos`; do
for n in $ACTIVE_REPOS; do
(
cd $n
if test -e setup.py ; then
Expand All @@ -158,7 +161,7 @@ case "$CMD" in

install | develop )
PY_COMMAND="${1:-python}"
for n in `list_active_repos`; do
for n in $ACTIVE_REPOS; do
(
set -e
cd $n
Expand All @@ -185,7 +188,7 @@ case "$CMD" in
fi
rm -f tags TAGS
ctags $CTAGS_EXTRA_OPTS --exclude=build --python-kinds='-i' \
--exclude='*.html' -R `list_active_repos` $MYDIR
--exclude='*.html' -R $ACTIVE_REPOS $MYDIR
;;

setup-env )
Expand Down

0 comments on commit 4c585a1

Please sign in to comment.