extras-repoclosure BrokenDeps.py,1.1,1.2

Michael Schwendt mschwendt at fedoraproject.org
Tue Sep 14 21:58:41 UTC 2010


Author: mschwendt

Update of /cvs/fedora/extras-repoclosure
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv29701

Modified Files:
	BrokenDeps.py 
Log Message:
doh! restore the broken deps package id details in private mails


Index: BrokenDeps.py
===================================================================
RCS file: /cvs/fedora/extras-repoclosure/BrokenDeps.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- BrokenDeps.py	13 Sep 2010 11:53:57 -0000	1.1
+++ BrokenDeps.py	14 Sep 2010 21:58:40 -0000	1.2
@@ -23,7 +23,8 @@
 def GetRequires(b):
     r = []
     for line in b.report:
-        r.append('    '+b.pkgid+'  requires  '+line)
+        if len(line) and not line.isspace() and not line.startswith('package: ') and line.find('unresolved deps:') < 0:
+            r.append( '    '+self.pkgid+'  requires  '+line.lstrip() )
     return '\n'.join(r)
 
 
@@ -66,9 +67,8 @@
                 continue
             else:
                 # Copy report per broken package.
-                r = line.rstrip().lstrip()
-                if len(r)>0 and not r.startswith('package:') \
-                        and not r.startswith('unresolved deps:'):
+                r = line.rstrip()
+                if len(r)>0:
                     b.report.append(r)
 
         elif inbody == 2:



More information about the scm-commits mailing list