[bmap-tools] [PATCH 2/9] bmaptool: assume that bmap and asc files are not compressed
Artem Bityutskiy
dedekind1 at gmail.com
Tue Jan 28 08:45:54 EST 2014
From: Artem Bityutskiy <artem.bityutskiy at intel.com>
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 at intel.com>
---
bmaptool | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bmaptool b/bmaptool
index 5214a83..56d42c4 100755
--- 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:
--
1.8.3.1
More information about the Bmap-tools
mailing list