/[smeserver]/rpms/plague/sme7/plague-0.4.5.8-keepjobs.patch
ViewVC logotype

Contents of /rpms/plague/sme7/plague-0.4.5.8-keepjobs.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sat Apr 9 16:06:17 2011 UTC (13 years, 7 months ago) by slords
Branch: MAIN
CVS Tags: plague-0_4_5_8-2_el4_sme, HEAD
Error occurred while calculating annotation data.
Initial import

1 diff -up plague-0.4.5.8/server/BuildMaster.py.keepjobs plague-0.4.5.8/server/BuildMaster.py
2 --- plague-0.4.5.8/server/BuildMaster.py.keepjobs 2011-04-09 09:55:35.645857362 -0600
3 +++ plague-0.4.5.8/server/BuildMaster.py 2011-04-09 09:56:01.285336069 -0600
4 @@ -421,9 +421,9 @@ class BuildMaster(threading.Thread):
5 def _cleanup_db(self):
6 expiretime = int(time.time()-14*24*3600)
7 print "DB cleanup: %d" % expiretime
8 - self._cursor.execute("DELETE FROM jobs WHERE (status='failed' OR status='finished') AND endtime<=%d" % expiretime)
9 - self._dbcx.commit()
10 -
11 + #self._cursor.execute("DELETE FROM jobs WHERE (status='failed' OR status='finished') AND endtime<=%d" % expiretime)
12 + #self._dbcx.commit()
13 +
14 def _finish_signed(self): # only for Fedora Extras pushscript
15 print "Checking needsign"
16 self._cursor.execute("SELECT * FROM jobs WHERE status='needsign'")

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed