From: lisu Date: Tue, 16 Aug 2011 13:43:44 +0000 (+0200) Subject: - clone packages repos to ~/rpm/packages X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=497984afa27d22fc0ab42f6e77a1aec4b681c9d1;p=packages%2Frpm-build-tools.git - clone packages repos to ~/rpm/packages --- diff --git a/builder b/builder index 2be0369..189d18a 100755 --- 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"