[kernel] r13156 - dists/trunk/linux-2.6/debian/bin
Martin Michlmayr
tbm at alioth.debian.org
Tue Mar 17 17:35:06 UTC 2009
Author: tbm
Date: Tue Mar 17 17:35:04 2009
New Revision: 13156
Log:
show size even when image fits
Modified:
dists/trunk/linux-2.6/debian/bin/buildcheck.py
Modified: dists/trunk/linux-2.6/debian/bin/buildcheck.py
==============================================================================
--- dists/trunk/linux-2.6/debian/bin/buildcheck.py (original)
+++ dists/trunk/linux-2.6/debian/bin/buildcheck.py Tue Mar 17 17:35:04 2009
@@ -144,13 +144,13 @@
value = int(value)
- s = os.stat(image)
+ size = os.stat(image)[stat.ST_SIZE]
- if s[stat.ST_SIZE] > value:
- out.write('Image too large (%d > %d)! Refusing to continue.\n' % (s[stat.ST_SIZE], value))
+ if size > value:
+ out.write('Image too large (%d > %d)! Refusing to continue.\n' % (size, value))
return 1
- out.write('Image fits (%d). Continuing.\n' % value)
+ out.write('Image fits (%d <= %d). Continuing.\n' % (size, value))
return 0
More information about the Kernel-svn-changes
mailing list