From: Artem Bityutskiy Date: Mon, 27 Jan 2014 15:20:57 +0000 (+0200) Subject: bmaptool: assume that bmap and asc files are not compressed X-Git-Tag: v3.2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d67371d1ee1bdf568540644f0950351dc935246;p=tools%2Fbmap-tools.git bmaptool: assume that bmap and asc files are not compressed 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 --- 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: