Commit 8c4b2fec authored by Vitaly Lipatov's avatar Vitaly Lipatov

check_publish.sh: add check for already exist git repo

parent 85adf32a
......@@ -53,12 +53,24 @@ for i in $SPECLIST ; do
rpmbugs -t $i | grep -v "CLO.*FIX" | grep "@altlinux" >$i.bugs
test -s $i.bugs || rm -f $i.bugs
# if missed on ftp
if rpmgp -c $i | grep -q MISSED ; then
rpmgp -c $i >$i.missed
else
rm -f $i.$missed
fi
# if present in git
if [ -n "$GIRAR_USER" ] ; then
GITURL="http://git.altlinux.org/people/$GIRAR_USER/packages/$i.git"
if GET -d $GITURL ; then
echog "Published at $GITURL" > $i.GIT.PUBLISHED
echog "Please check this spec and move work to git" >> $i.GIT.PUBLISHED
ssh $GEARHOST find-package $i >> $i.GIT.PUBLISHED
fi
fi
# TODO:
#ssh git.alt acl sisyphus $PKGNAME show > $i.acl
#grep " $USER\$" $i.acl
......
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