diff-packages: Fix bug that required you to run the tool twice
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 10 Apr 2013 15:24:35 +0000 (18:24 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 10 Apr 2013 15:24:35 +0000 (18:24 +0300)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
tools/getpacs/diff-packages.py

index c3489af..6312f81 100755 (executable)
@@ -66,8 +66,7 @@ def get_package_list2(image_name, base_url, build_id):
         cache = open(cache_file, "w")
         cache.write(package_file.read())
         cache.close()
-    else:
-        package_file = open(cache_file, "rb")
+    package_file = open(cache_file, "rb")
 
     packages = {}