dbpath = '/tmp/vpackager.db'
+ ''' Verify that the essential tables for the vpackager environment
+ db = sqlite3.connect(dbpath)
+ c.execute('select name from sqlite_master where type="table"')
+ ''' Create the essential tables for the vpackager environment'''
+ if __verify_tables() is True:
""" Create the job queue table. NEVER to be called from the program
""" Delete a job from the job queue"""
c.execute('delete from queue where id=?', t)
""" Move job from queue to history and add the timestamp to the buidl
c.execute('delete from queue where id=?',t)
def LogJobEnd(jobid, stdoutpath, result):
""" Update the job history to log the end time and end result of the
c.execute('''update history set result=? where id=?''',t)
""" Find the next job in line to be built"""
ret = c.execute('select * from queue').fetchall()
ret = c.execute('select * from history').fetchall()