Permalink
Browse files

remove obsolete code

  • Loading branch information...
1 parent 61d4983 commit 67a2d1f401b3ed954f6be2c0823ebdb080ed84b2 @tuxofil tuxofil committed Oct 3, 2012
Showing with 0 additions and 23 deletions.
  1. +0 −23 yabs.sh
View
@@ -19,29 +19,6 @@ ROOTFS=/tmp/yabs-rootfs
REPO_LIST="/etc/yabs/repo.list"
## ---------------------------------------------
-## functions
-
-do_build(){
- local SRPM="$1"
- LOGFILE="$LOGS_DIR"/`basename "$SRPM"`.log
- > "$CURRENT_LOG"
- > "$LOGFILE"
- (
- date
- "$YABS" "$SRPM" "$ROOTFS" "$REPO" "$REPO_LIST"
- RET=$?
- [ "$RET" != "0" ] && \
- echo "FAILED with exit code $RET"
- date
- ## Save task exit code in file due to
- ## "cmd | tee" construction will always return
- ## exit code, returned by tee, not by cmd.
- echo $RET > "$RUNDIR"/lasttaskstate
- ) 2>&1 | tee "$CURRENT_LOG" > "$LOGFILE"
- return `cat "$RUNDIR"/lasttaskstate`
-}
-
-## ---------------------------------------------
## main
set -e

0 comments on commit 67a2d1f

Please sign in to comment.