extras-buildsys/utils/pushscript Push.py,1.50,1.51
Michael Schwendt (mschwendt)
fedora-extras-commits at redhat.com
Wed Apr 16 22:48:12 UTC 2008
Author: mschwendt
Update of /cvs/fedora/extras-buildsys/utils/pushscript
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26692
Modified Files:
Push.py
Log Message:
don't push unexpectedly broken build results like amarok-1.4.9.1-1.el5 where the built src.rpm contains no %changelog and all builders succeeded prematurely without producing any rpms
Index: Push.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/pushscript/Push.py,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- Push.py 5 Mar 2008 22:25:40 -0000 1.50
+++ Push.py 16 Apr 2008 22:48:09 -0000 1.51
@@ -135,6 +135,12 @@
buildreport.Add(bi)
raise PushWarning, 'WARNING: %s published before' % pkg_fn
+ if len(br.filedict['rpm'])==0: # no builds (2008-04-16 with amarok-1.4.9.1-1.el5)
+ br.MarkPushed()
+ bi = BuildInfo(br.__str__(),'INVALID build results, not published!',False,True)
+ buildreport.Add(bi)
+ raise PushWarning, 'WARNING: no built rpms in %s' % br.GetHome()
+
for package in br.filedict['rpm'] + br.filedict['debuginfo']:
pkg_fn = pkg_destfn = os.path.basename(package)
if package in br.filedict['debuginfo']:
More information about the fedora-extras-commits
mailing list