summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kraft <george.kraft@calxeda.com>2012-08-10 13:19:58 -0500
committerGeorge Kraft <george.kraft@calxeda.com>2012-08-10 13:19:58 -0500
commit1f7666a0e71c727d5498429ba39188849e85a293 (patch)
treef7950aeb574b77d9ac1a238e598e54e379acb1d4
parent2202a937935565fd6f59570095a661af3084d6b8 (diff)
downloadcxmanage-1f7666a0e71c727d5498429ba39188849e85a293.tar.gz
controller: Only add skip_crc32 to package manifests when it's true
Also print the skip_crc32 flag along with other image info.
-rw-r--r--cxmanage/controller.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cxmanage/controller.py b/cxmanage/controller.py
index 212892c..13b7ba0 100644
--- a/cxmanage/controller.py
+++ b/cxmanage/controller.py
@@ -139,7 +139,7 @@ class Controller:
config.set(section, "version", str(image.version))
if image.daddr != None:
config.set(section, "daddr", "%x" % image.daddr)
- if image.skip_crc32 != None:
+ if image.skip_crc32:
config.set(section, "skip_crc32", str(image.skip_crc32))
manifest = open("%s/MANIFEST" % self.work_dir, "w")
config.write(manifest)
@@ -167,6 +167,8 @@ class Controller:
print "Version: %i" % image.version
if image.daddr != None:
print "Daddr: %x" % image.daddr
+ if image.skip_crc32:
+ print "Skip CRC32: %s" % image.skip_crc32
print