# HG changeset patch # User Rob Landley # Date 1246411019 18000 # Node ID 27f007ea212929cc90776a0761722fe15e775039 # Parent dc19e20734ca0fb022cd79b2a3ddc8b1dbfd21b2 Keep unstable tarballs around even when you do a build that doesn't use 'em. diff -r dc19e20734ca -r 27f007ea2129 sources/functions.sh --- a/sources/functions.sh Tue Jun 30 03:05:04 2009 -0500 +++ b/sources/functions.sh Tue Jun 30 20:16:59 2009 -0500 @@ -224,7 +224,6 @@ SUM="$(sha1file "$SRCDIR/$FILENAME" 2>/dev/null)" if [ x"$SUM" == x"$SHA1" ] || [ -z "$SHA1" ] && [ -f "$SRCDIR/$FILENAME" ] then - touch "$SRCDIR/$FILENAME" if [ -z "$SHA1" ] then echo "No SHA1 for $FILENAME ($SUM)" @@ -275,12 +274,13 @@ echo -ne "checking $FILENAME\r" + # Update timestamps on both stable and unstable tarballs (if any) + # so cleanup_oldfiles doesn't delete them + touch -c "$SRCDIR"/{"$FILENAME","$ALTFILENAME"} 2>/dev/null + # Is the unstable version selected? if unstable "$(basename "$FILENAME")" then - # Keep old version around, if present. - touch -c "$SRCDIR/$FILENAME" 2>/dev/null - # Download new one as alt-packagename.tar.ext FILENAME="$ALTFILENAME" SHA1= try_download "$UNSTABLE" || ([ ! -z "$PREFERRED_MIRROR" ] && SHA1= FILENAME="$ALTFILENAME" try_download "$PREFERRED_MIRROR/$ALTFILENAME")