# HG changeset patch # User Christopher Rogers # Date 1288807523 0 # Node ID bd3ed7d16acaf489b81d80ef165b82c0cc547a7f # Parent 1a79ce82bee5acf62bfda02d18cd18b413535829 Fixed get-linux-source script in linux-source. diff -r 1a79ce82bee5 -r bd3ed7d16aca linux-source/stuff/get-linux-source --- a/linux-source/stuff/get-linux-source Wed Nov 03 06:33:29 2010 +0000 +++ b/linux-source/stuff/get-linux-source Wed Nov 03 18:05:23 2010 +0000 @@ -5,11 +5,15 @@ url=$(cat /usr/src/kernel-patches/url) +if [ ! -d $SOURCES_REPOSITORY ]; then + mkdir -p $SOURCES_REPOSITORY +fi + if [ -f $SOURCES_REPOSITORY/$(basename $url) ]; then cd /usr/src/ tar xjf $(basename $url) else - wget -O $SOURCES_REPOSITORY/$(basename $url) + wget -O $SOURCES_REPOSITORY/$(basename $url) -c $url cd /usr/src/ tar xjf $(basename $url) fi