]> TLD Linux GIT Repositories - packages/rpm-build-tools.git/commitdiff
- clone packages repos to ~/rpm/packages
authorlisu <lisu@tld-linux.org>
Tue, 16 Aug 2011 13:43:44 +0000 (15:43 +0200)
committerlisu <lisu@tld-linux.org>
Tue, 16 Aug 2011 13:43:44 +0000 (15:43 +0200)
builder

diff --git a/builder b/builder
index 2be0369bbc4b64efbda90c9cdd23d4397e803650..189d18a4529d915996b53e3e7ad458e0779f5522 100755 (executable)
--- a/builder
+++ b/builder
@@ -815,8 +815,9 @@ get_spec() {
                                Exit_error err_not_implemented
                        else
                                (
+                                       cd "$REPO_DIR"
                                        unset GIT_WORK_TREE
-                                       git clone  -o $REMOTE_PLD ${GIT_SERVER}:${PACKAGES_DIR}/${ASSUMED_NAME}.git || {
+                                       git clone -o $REMOTE_PLD ${GIT_SERVER}:${PACKAGES_DIR}/${ASSUMED_NAME}.git "$REPO_DIR/${ASSUMED_NAME}" || {
                                                # softfail if new package, i.e not yet added to PLD rep
                                                [ ! -f "$ASSUMED_NAME/$SPECFILE" ] && Exit_error err_no_spec_in_repo
                                                echo "Warning: package not in CVS - assuming new package"