bmaptool: assume that bmap and asc files are not compressed
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Mon, 27 Jan 2014 15:20:57 +0000 (17:20 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 28 Jan 2014 12:23:22 +0000 (14:23 +0200)
Remove useless 'is_compressed' check for bmap and asc files which are never
compressed, since compression is currently detected by file extention, so .bmap
and .asc extentions always correspond to an uncompressed file.

Change-Id: I93e743bc760f0f37d6fcee8bc079eade532708f1
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
bmaptool

index 5214a836e9ed6363245571754ba9abbd9187d41b..56d42c46a2b2c8cdc657f0e730bf149d8d3dba00 100755 (executable)
--- a/bmaptool
+++ b/bmaptool
@@ -164,7 +164,7 @@ def verify_detached_bmap_signature(args, bmap_obj, bmap_path, log):
         log.info("discovered signature file for bmap '%s'" % sig_path)
 
     # If the stand-alone signature file is not local, make a local copy
-    if sig_obj.is_compressed or sig_obj.is_url:
+    if sig_obj.is_url:
         try:
             tmp_obj = tempfile.NamedTemporaryFile("w+")
         except IOError as err:
@@ -335,7 +335,7 @@ def find_and_open_bmap(args, log):
             if ext == '':
                 return (None, None)
 
-    if not bmap_obj.is_compressed and not bmap_obj.is_url:
+    if not bmap_obj.is_url:
         return (bmap_obj, bmap_path)
 
     try: