From af6c30e62eed824a9d0091630c733a126cb57fc3 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Wed, 10 Dec 2014 16:37:52 +0000 Subject: [PATCH] Declare [image]check-size as integer in config schema svn path=/dists/trunk/linux/; revision=22183 --- debian/bin/buildcheck.py | 2 -- debian/bin/gencontrol.py | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/debian/bin/buildcheck.py b/debian/bin/buildcheck.py index a6f6f062f..159593560 100755 --- a/debian/bin/buildcheck.py +++ b/debian/bin/buildcheck.py @@ -198,8 +198,6 @@ class CheckImage(object): if not value: return 0 - value = int(value) - size = os.stat(image)[stat.ST_SIZE] if size > value: diff --git a/debian/bin/gencontrol.py b/debian/bin/gencontrol.py index 6c0701dce..9d39e7a1b 100755 --- a/debian/bin/gencontrol.py +++ b/debian/bin/gencontrol.py @@ -33,6 +33,7 @@ class Gencontrol(Base): 'bootloaders': config.SchemaItemList(), 'configs': config.SchemaItemList(), 'initramfs-generators': config.SchemaItemList(), + 'check-size': config.SchemaItemInteger(), }, 'relations': { },