svn commit: r215770 - head/tools/tools/sysbuild
Poul-Henning Kamp
phk at FreeBSD.org
Tue Nov 23 21:21:56 UTC 2010
Author: phk
Date: Tue Nov 23 21:21:56 2010
New Revision: 215770
URL: http://svn.freebsd.org/changeset/base/215770
Log:
Don't checksum distfiles twice if they match the first time.
Modified:
head/tools/tools/sysbuild/sysbuild.sh
Modified: head/tools/tools/sysbuild/sysbuild.sh
==============================================================================
--- head/tools/tools/sysbuild/sysbuild.sh Tue Nov 23 21:20:27 2010 (r215769)
+++ head/tools/tools/sysbuild/sysbuild.sh Tue Nov 23 21:21:56 2010 (r215770)
@@ -253,26 +253,24 @@ ports_prefetch() (
# Now checksump/fetch them
for p in `cat /tmp/_.plist`
do
- echo "Prefetching $p" >> /mnt/_.prefetch
b=`echo $p | tr / _`
(
cd $p
if make checksum $PORTS_OPTS ; then
- true
- else
- make distclean
- make checksum $PORTS_OPTS || true
+ rm -f /mnt/_.prefetch.$b
+ echo "OK $p" >> /mnt/_.prefetch
+ exit 0
fi
- ) > /mnt/_.prefetch.$b 2>&1
- (
- cd $p
+ make distclean
+ make checksum $PORTS_OPTS || true
+
if make checksum $PORTS_OPTS > /dev/null 2>&1 ; then
rm -f /mnt/_.prefetch.$b
echo "OK $p" >> /mnt/_.prefetch
else
echo "BAD $p" >> /mnt/_.prefetch
fi
- )
+ ) > /mnt/_.prefetch.$b 2>&1
done
)
)
More information about the svn-src-all
mailing list