]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
Rewrite branch_files for git
authorKacper Kornet <draenog@pld-linux.org>
Tue, 22 Mar 2011 20:40:14 +0000 (20:40 +0000)
committerKacper Kornet <draenog@pld-linux.org>
Mon, 28 Mar 2011 12:46:01 +0000 (13:46 +0100)
builder.sh

index baa75c9a5aab015ef96753e75ebad3860447c0be..9f29e056d21fad5285175ee37e48a3fd5aefb67d 100755 (executable)
@@ -1338,45 +1338,18 @@ tag_files() {
 
 branch_files() {
        TAG=$1
-       echo "CVS branch tag: $TAG"
+       echo "Git branch: $TAG"
        shift
 
-       TAG_FILES="$@"
-
        if [ -n "$DEBUG" ]; then
                set -x
                set -v
        fi
 
-       local OPTIONS="tag $CVS_FORCE -b"
-
-       # branch exists?
-       is_tag_a_branch $TAG
-       if [ $? -eq 1 ]; then
-               OPTIONS="$OPTIONS -B"
-       fi
-
-       if [ -n "$CVSROOT" ]; then
-               OPTIONS="-d $CVSROOT $OPTIONS"
-       fi
-       cd "$PACKAGE_DIR"
-       local tag_files
-       for i in $TAG_FILES; do
-               local fp=`nourl "$i"`
-               if [ -f "$fp" ]; then
-                       tag_files="$tag_files $fp"
-               elif [ -n "GREEDSRC" ]; then
-                       get_greed_sources $i
-               else
-                       Exit_error err_no_source_in_repo $i
-               fi
-       done
-       if [ "$tag_files" ]; then
-               $CVS_COMMAND $OPTIONS $TAG $tag_files || exit
-       fi
+       local OPTIONS="branch $CVS_FORCE"
 
        cd "$PACKAGE_DIR"
-       $CVS_COMMAND $OPTIONS $TAG $SPECFILE || exit
+       git $OPTIONS $TAG || exit
 }
 
 
@@ -2527,7 +2500,7 @@ case "$COMMAND" in
 
                get_spec
                parse_spec
-               branch_files $TAG $SOURCES $PATCHES $ICONS
+               branch_files $TAG
                ;;
        "add_cvs" )
                init_builder
This page took 0.930592 seconds and 4 git commands to generate.