diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-11-22 19:55:41 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-11-22 19:55:41 +0100 |
commit | e343366efd1762336c4c7250dbbf62b7ea0bf47e (patch) | |
tree | 6ba13c553cefd000202faae1c12d90b6c520efbe | |
parent | 53ecffc2f30b2678709105892b60073f7c9c0847 (diff) | |
download | dbscripts-e343366efd1762336c4c7250dbbf62b7ea0bf47e.tar.gz dbscripts-e343366efd1762336c4c7250dbbf62b7ea0bf47e.tar.xz |
sourceballs-cleanup: respect .force and .skip files
-rwxr-xr-x | misc-scripts/sourceballs-cleanup | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/misc-scripts/sourceballs-cleanup b/misc-scripts/sourceballs-cleanup index fdb1355..595f501 100755 --- a/misc-scripts/sourceballs-cleanup +++ b/misc-scripts/sourceballs-cleanup @@ -55,6 +55,10 @@ for sourceball in "${FTP_BASE}/${SRCPOOL}"/*$SRCEXT; do packagename=$(basename $sourceball) packagename=${packagename%-*-*$SRCEXT} + if grep -q "^${packagename}\$" "$(dirname $0)/../cron-jobs/sourceballs.skip"; then + msg "$packagename : package found in sourceballs.skip. Removing sourceball." + ${CLEANUP_DRYRUN} || mv $sourceball $SOURCE_CLEANUP_DESTDIR + fi if ! /usr/bin/svn export -q --force "$SVNREPO/$packagename" "$packagename" >/dev/null 2>&1; then if [ $? -ne 1 ]; then error "$packagename : svn died during export. Skipping sourceball." @@ -66,8 +70,10 @@ for sourceball in "${FTP_BASE}/${SRCPOOL}"/*$SRCEXT; do warning "$packagename : no longer in repos but trunk is still in svn. Removing sourceball." ${CLEANUP_DRYRUN} || mv $sourceball $SOURCE_CLEANUP_DESTDIR elif ! chk_license $(. "$packagename/trunk/PKGBUILD"; echo ${license[@]}); then - msg "$packagename : source hosting no longer required by license. Removing sourceball." - ${CLEANUP_DRYRUN} || mv $sourceball $SOURCE_CLEANUP_DESTDIR + if ! grep -q "^${packagename}\$" "$(dirname $0)/../cron-jobs/sourceballs.force"; then + msg "$packagename : source hosting no longer required by license. Removing sourceball." + ${CLEANUP_DRYRUN} || mv $sourceball $SOURCE_CLEANUP_DESTDIR + fi else remove_old "$packagename/repos/" fi |