extras-repoclosure PackageOwners.py,1.21,1.22

Michael Schwendt mschwendt at fedoraproject.org
Fri Dec 26 14:54:08 UTC 2008


Author: mschwendt

Update of /cvs/fedora/extras-repoclosure
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11708

Modified Files:
	PackageOwners.py 
Log Message:
throw exception if owners.list is empty - todo: prevent FAS2 errors earlier?


Index: PackageOwners.py
===================================================================
RCS file: /cvs/fedora/extras-repoclosure/PackageOwners.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- PackageOwners.py	23 Oct 2008 22:48:08 -0000	1.21
+++ PackageOwners.py	26 Dec 2008 14:54:07 -0000	1.22
@@ -151,10 +151,14 @@
                     'mailto' : mailto,
                     'cc' : addrs
                     }
-            except:
+            except (IndexError, ValueError):
                 print 'ERROR: owners.list is broken'
                 print line
-
+        if not len( self.dict.keys() ):
+            # TODO: has happened once with FAS2
+            # 503 service unavailable? catch this elsewhere
+            print 'ERROR: no owners'
+            raise Exception
 
     def _downloadfromcvs(self):
         self._enterworkdir()




More information about the fedora-extras-commits mailing list