diff options
author | Eric Bélanger <snowmaniscool@gmail.com> | 2010-06-28 05:40:38 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-06-28 07:55:02 +0200 |
commit | e2cc14311b1bfad0c30cef395a1a033cdef030c0 (patch) | |
tree | 96e00a57b618a5cf00e621e7ebe8f332f135cd34 /misc-scripts/sourceballs-cleanup | |
parent | f6004585ef7ceff8e0119363f297104ac7900e09 (diff) | |
download | dbscripts-e2cc14311b1bfad0c30cef395a1a033cdef030c0.tar.gz dbscripts-e2cc14311b1bfad0c30cef395a1a033cdef030c0.tar.xz |
sourceballs: Added community and community-testing support
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'misc-scripts/sourceballs-cleanup')
-rwxr-xr-x | misc-scripts/sourceballs-cleanup | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/misc-scripts/sourceballs-cleanup b/misc-scripts/sourceballs-cleanup index 0a1ac4d..c7f284d 100755 --- a/misc-scripts/sourceballs-cleanup +++ b/misc-scripts/sourceballs-cleanup @@ -43,7 +43,7 @@ remove_old() { break fi done - if [ $skip -ne 1 ]; then + if [ $skip -ne 1 ]; then mv "$srcpkg" $SOURCE_CLEANUP_DESTDIR fi fi @@ -78,7 +78,8 @@ for sourceball in "$srcpath"/*$SRCEXT; do packagename=$(basename $sourceball) packagename=${packagename%-*-*$SRCEXT} - if ! /usr/bin/svn export -q --force "$SVNREPO/$packagename" "$packagename" >/dev/null 2>&1 ; then + if ! /usr/bin/svn export -q --force "$SVNREPO/$packagename" "$packagename" >/dev/null 2>&1 \ + && ! /usr/bin/svn export -q --force "$SVNREPOCOMMUNITY/$packagename" "$packagename" >/dev/null 2>&1 ; then echo "$packagename : no longer in svn. Removing sourceball." >> "$logfile" mv $sourceball $SOURCE_CLEANUP_DESTDIR elif [ -z "$(ls -A "$packagename/repos")" ]; then |