]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
Do not fetch during tagging
authorKacper Kornet <draenog@pld-linux.org>
Thu, 19 May 2011 16:39:43 +0000 (17:39 +0100)
committerKacper Kornet <draenog@pld-linux.org>
Fri, 20 May 2011 12:14:18 +0000 (13:14 +0100)
Previously if upstream was updated since last fetch, the newer version
was tagged. But it could create a race condition on builders, where
different versions where checked and tagged.

builder.sh

index 447205a3f8951288ab010ead2242e6461a249b44..d15ce7945aa7a1e71ead6a49013c576bf02b9a06 100755 (executable)
@@ -2511,8 +2511,11 @@ case "$COMMAND" in
                        Exit_error err_no_spec_in_cmdl
                fi
 
-               get_spec
                parse_spec
+               if  [ ! -d .git ]; then
+                       echo "No git reposiotory" >&2
+                       exit 101
+               fi
                tag_files
                ;;
        "mr-proper" )
This page took 0.027968 seconds and 4 git commands to generate.