changeset 1094:fb9423e8bd09

Move wait into cleanup_oldfiles.
author Rob Landley <rob@landley.net>
date Fri, 28 May 2010 00:44:32 -0500
parents 2de27a5561af
children 891bb7ec58f2
files download.sh sources/functions.sh
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/download.sh	Tue May 25 10:09:49 2010 -0500
+++ b/download.sh	Fri May 28 00:44:32 2010 -0500
@@ -110,8 +110,6 @@
 RENAME="s/(squashfs)(.*)/\1-\2/" \
 maybe_fork "download || dienow"
 
-wait
-
 echo === Got all source.
 
 rm -f "$SRCDIR"/MANIFEST  # So cleanup_oldfiles doesn't warn about it.
--- a/sources/functions.sh	Tue May 25 10:09:49 2010 -0500
+++ b/sources/functions.sh	Fri May 28 00:44:32 2010 -0500
@@ -374,6 +374,10 @@
 
 cleanup_oldfiles()
 {
+  # wait for asynchronous downloads to complete
+
+  wait
+
   for i in "${SRCDIR}"/*
   do
     if [ -f "$i" ] && [ "$(date +%s -r "$i")" -lt "${START_TIME}" ]