This should fix the error when trying to upload sources.
authorChristian Schmidt <christian.schmidt@ipfire.org>
Sun, 29 Aug 2010 06:19:59 +0000 (08:19 +0200)
committerChristian Schmidt <christian.schmidt@ipfire.org>
Sun, 29 Aug 2010 06:19:59 +0000 (08:19 +0200)
make.sh

diff --git a/make.sh b/make.sh
index 4e72c00..41ede31 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1018,11 +1018,12 @@ uploadsrc)
                beautify message FAIL
                exit 1
        fi
+
        URL_SOURCE=$(grep URL_SOURCE lfs/Config | awk '{ print $3 }')
-       REMOTE_FILES=$(echo "ls -1" | sftp -C ${IPFIRE_USER}@${URL_SOURCE})
+       REMOTE_FILES=$(echo "ls -1 --ignore=toolchains" | sftp -C ${IPFIRE_USER}@${URL_SOURCE})
 
        cd $BASEDIR/cache/
-       for file in $(ls -1); do
+       for file in $(ls -1 --ignore=toolchains); do
                grep -q "$file" <<<$REMOTE_FILES && continue
                NEW_FILES="$NEW_FILES $file"
        done