]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
Move default location of directory with builder script one level up
authorKacper Kornet <draenog@pld-linux.org>
Thu, 14 Apr 2011 13:15:54 +0000 (14:15 +0100)
committerKacper Kornet <draenog@pld-linux.org>
Thu, 14 Apr 2011 13:15:54 +0000 (14:15 +0100)
Default location of directory with builder script is now
$HOME/rpm/rpm-build-tools. In old location
(rpm/packages/rpm-build-tools) when someone send a request to builders
to build rpm-build-tools package, it was deleted during cleaning
afterwards.

builder.sh

index fbdecf8f44ba827ef44f45c928b87b5a72f625d9..69db00d4e202b6ae99aa326cbada356407689e98 100755 (executable)
@@ -1946,9 +1946,11 @@ init_rpm_dir() {
        mkdir -p $TOP_DIR $rpmdir $buildir $srpmdir
 
        cd "$TOP_DIR"
-       git clone  ${GIT_SERVER}/rpm-build-tools.git ${TOP_DIR}/rpm-build-tools
+       if [ ! -e ../rpm-build-tools ]; then
+               git clone  ${GIT_SERVER}/rpm-build-tools.git ../rpm-build-tools
+       fi
        for a in dropin md5 adapter builder mirrors {relup,compile,repackage,pearize}.sh pldnotify.awk; do
-               ln -s rpm-build-tools/$a .
+               ln -s ../rpm-build-tools/$a .
        done
        init_builder
 }
This page took 0.042248 seconds and 4 git commands to generate.