[Blends-commit] [SCM] blends-gsoc branch, master, updated. be33a254f91d4fcaabc0c4b6bb0f67f02e71e739

Emmanouil Kiagias e.kiagias at gmail.com
Wed Sep 18 14:25:21 UTC 2013


The following commit has been merged in the master branch:
commit be33a254f91d4fcaabc0c4b6bb0f67f02e71e739
Author: Emmanouil Kiagias <e.kiagias at gmail.com>
Date:   Wed Sep 18 16:25:04 2013 +0200

    fixed bug in tasks_diff script, the set comparison(for added/removed packages) was the opposite that it should be, now tasks_diff compares properly any two Blends releases

diff --git a/tasks_diff b/tasks_diff
index 0c9f119..6980b1a 100755
--- a/tasks_diff
+++ b/tasks_diff
@@ -106,7 +106,7 @@ def compare_tasks(tasks, tasks_compare, taskprefix):
 		task_first = True 
 		first_add = True
 		for header in ["depends", "recommends", "suggests", "ignore", "avoid"]:
-			added = set(tasks_compare[task][header]) - set(tasks[task][header])
+			added =  set(tasks[task][header]) - set(tasks_compare[task][header])
 			if added:
 				if first_print:
 					print START_FLAG, "\n"
@@ -123,7 +123,7 @@ def compare_tasks(tasks, tasks_compare, taskprefix):
 		
 		first_remove = True
 		for header in ["depends", "recommends", "suggests", "ignore", "avoid"]:
-			removed = set(tasks[task][header]) - set(tasks_compare[task][header])
+			removed =  set(tasks_compare[task][header]) - set(tasks[task][header])
 			if removed:
 				if first_print:
 					print START_FLAG, "\n"

-- 
Git repository for blends-gsoc code



More information about the Blends-commit mailing list