r1813 - trunk/src/host/qemu-neo1973/openmoko
andrew at sita.openmoko.org
andrew at sita.openmoko.org
Mon Apr 23 22:45:49 CEST 2007
Author: andrew
Date: 2007-04-23 22:45:48 +0200 (Mon, 23 Apr 2007)
New Revision: 1813
Modified:
trunk/src/host/qemu-neo1973/openmoko/flash.sh
Log:
Properly convert filesizes to hex - thanks to Marcus Smith. Apparently
some python versions' hex() adds a number width suffix.
Modified: trunk/src/host/qemu-neo1973/openmoko/flash.sh
===================================================================
--- trunk/src/host/qemu-neo1973/openmoko/flash.sh 2007-04-21 08:46:47 UTC (rev 1812)
+++ trunk/src/host/qemu-neo1973/openmoko/flash.sh 2007-04-23 20:45:48 UTC (rev 1813)
@@ -44,8 +44,8 @@
most_recent () {
cd $src_dir
export $2="`basename \`ls -d -1 $img_dir/$1 | sort | tail -n 1\``"
- export $3="`python -c \"import os; print hex(\
- os.stat('$img_dir/${!2}').st_size)\"`"
+ export $3="`python -c \"import os; print '0x%lx' \
+ %(os.stat('$img_dir/${!2}').st_size)\"`"
cd $script_dir
[ -e "${!2}" ] || ln -sf $img_dir/${!2} ${!2}
[ -n "${!3}" ]
More information about the commitlog
mailing list