Commit f71962d8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgp: s/srpms/gears, rewrite code

parent 1f8f2841
...@@ -260,11 +260,13 @@ if [ -n "$CLONEGIT" ] ; then ...@@ -260,11 +260,13 @@ if [ -n "$CLONEGIT" ] ; then
INITLETTER=$(echo $PKGNAME | cut -c1) INITLETTER=$(echo $PKGNAME | cut -c1)
# http://git.altlinux.org/gears/N/NAME.git # http://git.altlinux.org/gears/N/NAME.git
echo "Remote clone from /gears/$INITLETTER/$PKGNAME.git ..." RREPO="/gears/$INITLETTER/$PKGNAME.git"
if ! ssh $GIRARHOST clone /srpms/$INITLETTER/$PKGNAME.git packages/$PKGNAME.git ; then echo "Remote clone from $RREPO ..."
if ! ssh $GIRARHOST clone $RREPO packages/$PKGNAME.git ; then
# http://git.altlinux.org/srpms/N/NAME.git # http://git.altlinux.org/srpms/N/NAME.git
echo "Remote clone from /srpms/$INITLETTER/$PKGNAME.git ..." RREPO="/srpms/$INITLETTER/$PKGNAME.git"
ssh $GIRARHOST clone /srpms/$INITLETTER/$PKGNAME.git packages/$PKGNAME.git || warning "Can't remote clone." echo "Remote clone from $RREPO ..."
ssh $GIRARHOST clone $RREPO packages/$PKGNAME.git || warning "Can't remote clone."
fi fi
git clone git.alt:packages/$PKGNAME.git git clone git.alt:packages/$PKGNAME.git
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment