Unique repositories for Gitorious

This commit is contained in:
Kolan Sh 2012-04-18 23:09:50 +04:00
parent 452193468f
commit 9d54ace1f8
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ for v in $CHILI_ID_GITORIOUS_REPO; do
# Test for already present repo
ALREADY_EXIST=`mysql -h$MYSQL_HOSTNAME -u $MYSQL_USER -e "SELECT id
FROM $CHILI_MYSQL_DBNAME.repositories
WHERE url='$gitorious_path'
WHERE project_id=$chili_project_id
OR url='$gitorious_path'
OR root_url='$gitorious_path'" \
| grep -v tables_col|xargs|sed "s/ /\n/g"|tail -n+2`
if [ "" == "$ALREADY_EXIST" ]; then