[Blends-commit] r3599 - /blends/trunk/team_analysis_tools/count-dependencies.py

tille at users.alioth.debian.org tille at users.alioth.debian.org
Wed Oct 24 15:16:51 UTC 2012


Author: tille
Date: Wed Oct 24 15:16:51 2012
New Revision: 3599

URL: http://svn.debian.org/wsvn/blends/?sc=1&rev=3599
Log:
Until some point in time Recommends *and* Depends were used

Modified:
    blends/trunk/team_analysis_tools/count-dependencies.py

Modified: blends/trunk/team_analysis_tools/count-dependencies.py
URL: http://svn.debian.org/wsvn/blends/blends/trunk/team_analysis_tools/count-dependencies.py?rev=3599&op=diff
==============================================================================
--- blends/trunk/team_analysis_tools/count-dependencies.py (original)
+++ blends/trunk/team_analysis_tools/count-dependencies.py Wed Oct 24 15:16:51 2012
@@ -30,8 +30,9 @@
 
     def add_recommends(self, package, recommends):
         p = re.sub(BLEND+'-', '', package.encode('utf-8'))
-	
-	self.recommends[p] = []
+
+	if not self.recommends.has_key(p):
+	    self.recommends[p] = []
 	for r in recommends.encode('utf-8').split(','):
 	    r = r.strip()
 	    # since we also need to investigate "Depends" for older metapackages we also
@@ -88,7 +89,7 @@
     	                recommends = pkg['recommends']
     	                task.add_recommends(package,recommends)
     	            # in previous package versions we use Depends rather then Recommends
-    	            elif pkg.has_key('depends'):
+    	            if pkg.has_key('depends'):
     	                depends = pkg['depends']
     	                task.add_recommends(package,depends)
     	        try:




More information about the Blends-commit mailing list