summaryrefslogtreecommitdiff
path: root/tsp/scripts
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2016-09-29 16:16:37 (GMT)
committerAleksander Mistewicz <a.mistewicz@samsung.com>2017-01-09 18:46:14 (GMT)
commitc7324b39c73e6acb098a648534c171a7dcef46a7 (patch)
tree36eb8775593c8d3714665ef6cb6c3827bbd462d0 /tsp/scripts
parent2e7044cd56abee4e1bc5485e3872c139c9f9177a (diff)
downloadmajor-c7324b39c73e6acb098a648534c171a7dcef46a7.zip
major-c7324b39c73e6acb098a648534c171a7dcef46a7.tar.gz
major-c7324b39c73e6acb098a648534c171a7dcef46a7.tar.bz2
Fix set operation in tsp/scripts/download_image.pyrefs/changes/73/95273/5
Change-Id: I6afb5259018f14238880fce2ce9d15f0cb8c543c Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Diffstat (limited to 'tsp/scripts')
-rwxr-xr-xtsp/scripts/download_image.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tsp/scripts/download_image.py b/tsp/scripts/download_image.py
index c795a91..8b77676 100755
--- a/tsp/scripts/download_image.py
+++ b/tsp/scripts/download_image.py
@@ -191,11 +191,11 @@ class ImageDownloader:
f = target.fetch()
return f
- def check_diff(self, snap_pkgs, pre_pkgs):
+ def check_diff(self, pre_pkgs, snap_pkgs):
logging.debug("Checking diff")
set_snap_pkgs = set(snap_pkgs.splitlines())
set_pre_pkgs = set(pre_pkgs.splitlines())
- diff = set_pre_pkgs - set_snap_pkgs
+ diff = set_pre_pkgs ^ set_snap_pkgs
with open(self.diff_report_filename, 'w') as f:
ret = (len(diff) == 0)
if ret: