diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-08-08 01:26:52 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-08-08 01:26:52 +0200 |
commit | 3e08da59e3ca3849b753318b791aed8f1f8d8fb4 (patch) | |
tree | ca1469bb5f843cb5a8f7e13e5f056bde611d8ea5 /misc-scripts/ftpdir-cleanup | |
parent | 1db7071b222207d2d924a03a48d0745387f11c7b (diff) | |
download | dbscripts-3e08da59e3ca3849b753318b791aed8f1f8d8fb4.tar.gz dbscripts-3e08da59e3ca3849b753318b791aed8f1f8d8fb4.tar.xz |
fix cleaning of any packages and ignore empty repos
Diffstat (limited to 'misc-scripts/ftpdir-cleanup')
-rwxr-xr-x | misc-scripts/ftpdir-cleanup | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/misc-scripts/ftpdir-cleanup b/misc-scripts/ftpdir-cleanup index c9a232d..ac17a8d 100755 --- a/misc-scripts/ftpdir-cleanup +++ b/misc-scripts/ftpdir-cleanup @@ -60,9 +60,10 @@ for arch in ${ARCHES[@]}; do if [ ! -f "$ftppath/$reponame$DBEXT" ]; then echo "" - echo "ERROR: The file \"$ftppath/$reponame$DBEXT\" could not be found, aborting." + echo "WARNING: The file \"$ftppath/$reponame$DBEXT\" could not be found, skipping." echo "" - exit 1 + repo_unlock $reponame $arch + continue fi if ! bsdtar xf "$ftppath/$reponame$DBEXT"; then |