GROUP_BCONDS="no"
# create symlinks for tools in PACKAGE_DIR, see get_spec()
-SYMLINK_TOOLS="no"
+SYMLINK_TOOLS="yes"
PATCHES=""
SOURCES=""
CVS_FORCE=""
CVSIGNORE_DF="yes"
CVSTAG=""
-GIT_SERVER="git://git.pld-linux.org"
-GIT_PUSH="git@git.pld-linux.org"
+GIT_SERVER="git://git.tld-linux.org"
+GIT_PUSH="git@git.tld-linux.org"
PACKAGES_DIR="packages"
HEAD_DETACHED=""
DEPTH=""
RES_FILE=""
-DISTFILES_SERVER="://distfiles.pld-linux.org"
+DISTFILES_SERVER="://df.tld-linux.org"
ATTICDISTFILES_SERVER="://attic-distfiles.pld-linux.org"
DEF_NICE_LEVEL=19
cd "$REPO_DIR"
local url="$1"
if [ ! -f "mirrors" ] ; then
- ln -s rpm-build-tools/mirrors .
+ ln -s scripts/mirrors .
fi
IFS="|"
mkdir -p $TOP_DIR $rpmdir $buildir $srpmdir
cd "$TOP_DIR"
- if [ ! -e ../rpm-build-tools ]; then
- git clone ${GIT_SERVER}/${PACKAGES_DIR}/rpm-build-tools.git ../rpm-build-tools
+ if [ ! -e ../scripts ]; then
+ git clone ${GIT_SERVER}/${PACKAGES_DIR}/scripts.git ../scripts
fi
for a in adapter builder; do
- ln -s ../rpm-build-tools/${a}.sh $a
+ ln -s ../scripts/${a}.sh $a
done
init_builder
}
esac
done
+# Check if given package is available in TLD git
+if ! git ls-remote --heads ${GIT_SERVER}/${PACKAGES_DIR}/${ASSUMED_NAME} 1>/dev/null 2>&1; then
+ # Nope, we don't have it in TLD, switch for PLD repositories
+ GIT_SERVER="git://git.pld-linux.org"
+ GIT_PUSH="git@git.pld-linux.org"
+ PACKAGES_DIR="packages"
+ DISTFILES_SERVER="://distfiles.pld-linux.org"
+ ATTICDISTFILES_SERVER="://attic-distfiles.pld-linux.org"
+fi
+
if [ "$CVSTAG" ]; then
# pass $CVSTAG used by builder to rpmbuild too, so specs could use it
RPMOPTS="$RPMOPTS --define \"_cvstag $CVSTAG\""