+ elif [ -f "$DIR/.bzr/branch/bound" ]; then
+ bzr update "$DIR"
+ else
+ (cd "$DIR" && bzr pull "$VERSION")
+ fi
+ else
+ case $VERSION in
+ bzr+ssh://*|sftp://*)
+ bzr checkout "$VERSION" "$DIR"
+ ;;
+ *)
+ bzr get "$VERSION" "$DIR"
+ ;;
+ esac
+ fi
+ ;;
+ git://*|git+*://*)
+ if [ -d "$DIR" ]; then
+ if [ ! -d "$DIR/.git" ]; then
+ echo "$DIR is not a git checkout; cannot update" >&2
+ continue