From: "Magnus Granberg" <zorry@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/zorry:master commit in: gobs/bin/, gobs/pym/
Date: Tue, 1 May 2012 01:12:15 +0000 (UTC) [thread overview]
Message-ID: <1335834702.013ae1a327652f270df045b3779f29aaaeb4a2c1.zorry@gentoo> (raw)
commit: 013ae1a327652f270df045b3779f29aaaeb4a2c1
Author: Magnus Granberg <zorry <AT> gentoo <DOT> org>
AuthorDate: Tue May 1 01:11:42 2012 +0000
Commit: Magnus Granberg <zorry <AT> gentoo <DOT> org>
CommitDate: Tue May 1 01:11:42 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/zorry.git;a=commit;h=013ae1a3
fix code in check_setup.py
---
gobs/bin/gobs_guest_jobs | 3 ++-
gobs/pym/check_setup.py | 17 +++++++++--------
gobs/pym/updatedb.py | 7 ++++---
3 files changed, 15 insertions(+), 12 deletions(-)
diff --git a/gobs/bin/gobs_guest_jobs b/gobs/bin/gobs_guest_jobs
index 43b8cc1..6fd55ae 100755
--- a/gobs/bin/gobs_guest_jobs
+++ b/gobs/bin/gobs_guest_jobs
@@ -33,6 +33,7 @@ def main_loop(config_profile):
if job is None:
CM.putConnection(conn)
if check_configure_guest(config_profile) is not True:
+ time.sleep(60)
continue
else:
init_queru = queruaction(config_profile)
@@ -83,7 +84,7 @@ def main_loop(config_profile):
update_job_list(conn, "Fail", job[1])
logging.info("Job %s did fail. Config: %s", job[0], config_profile)
repeat = False
- time.sleep(10)
+ time.sleep(60)
CM.putConnection(conn)
return
diff --git a/gobs/pym/check_setup.py b/gobs/pym/check_setup.py
index c0ba2ee..3a5b404 100644
--- a/gobs/pym/check_setup.py
+++ b/gobs/pym/check_setup.py
@@ -2,6 +2,8 @@ from __future__ import print_function
import portage
import os
import errno
+import logging
+
from git import *
from gobs.text import get_file_text
@@ -16,11 +18,10 @@ if CM.getName()=='pgsql':
from gobs.pgsql import *
def check_make_conf():
- # FIXME: mark any config updating true in the db when updating the configs
# Get the config list
conn=CM.getConnection()
config_list_all = get_config_list_all(conn)
- print("Checking configs for changes and errors")
+ logging.info("Checking configs for changes and errors")
configsDict = {}
for config_id in config_list_all:
attDict={}
@@ -40,20 +41,20 @@ def check_make_conf():
except Exception as e:
attDict['config_error'] = e
attDict['active'] = 'False'
- print("Fail", config_id[0])
+ logging.info("%s FAIL!", config_id[0])
else:
attDict['config_error'] = ''
attDict['active'] = 'True'
- print("Pass", config_id[0])
+ logging.info("%s PASS", config_id[0])
# Get the checksum of make.conf
make_conf_checksum_tree = portage.checksum.sha256hash(make_conf_file)[0]
- # Check if we have change the make.conf and update the db with it
+ logging.info("make.conf checksum is %s on %s", make_conf_checksum_tree, config_id[0])
attDict['make_conf_text'] = get_file_text(make_conf_file)
attDict['make_conf_checksum_tree'] = make_conf_checksum_tree
- configsDict[config_id]=attDict
- update__make_conf(conn,configsDict)
+ configsDict[config_id[0]]=attDict
+ update__make_conf(conn, configsDict)
CM.putConnection(conn)
- print("Updated configurtions")
+ logging.info("Checking configs for changes and errors ... Done")
def check_make_conf_guest(config_profile):
conn=CM.getConnection()
diff --git a/gobs/pym/updatedb.py b/gobs/pym/updatedb.py
index 0277396..f718bc4 100755
--- a/gobs/pym/updatedb.py
+++ b/gobs/pym/updatedb.py
@@ -103,9 +103,10 @@ def update_cpv_db(mysettings):
# Run the update package for all package in the list in
# a multiprocessing pool
for package_line in sorted(package_list_tree):
- pool.apply_async(update_cpv_db_pool, (mysettings, package_line,))
- pool.close()
- pool.join()
+ update_cpv_db_pool(mysettings, package_line)
+ # pool.apply_async(update_cpv_db_pool, (mysettings, package_line,))
+ # pool.close()
+ # pool.join()
logging.info("Checking categories, package and ebuilds done")
def update_db_main():
next reply other threads:[~2012-05-01 1:12 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-01 1:12 Magnus Granberg [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-12-27 23:09 [gentoo-commits] dev/zorry:master commit in: gobs/bin/, gobs/pym/ Magnus Granberg
2012-12-23 17:09 Magnus Granberg
2012-12-22 2:59 Magnus Granberg
2012-12-21 1:44 Magnus Granberg
2012-12-19 2:11 Magnus Granberg
2012-12-07 14:07 Magnus Granberg
2012-12-05 23:56 Magnus Granberg
2012-11-29 22:22 Magnus Granberg
2012-07-17 0:07 Magnus Granberg
2012-06-26 22:10 Magnus Granberg
2012-05-13 17:59 Magnus Granberg
2012-05-09 23:12 Magnus Granberg
2012-05-06 10:41 Magnus Granberg
2012-05-04 22:32 Magnus Granberg
2012-04-30 12:08 Magnus Granberg
2012-04-29 14:43 Magnus Granberg
2012-04-29 13:16 Magnus Granberg
2012-04-29 13:13 Magnus Granberg
2012-04-28 16:01 Magnus Granberg
2012-04-27 22:22 Magnus Granberg
2012-04-27 20:59 Magnus Granberg
2011-11-01 21:14 Magnus Granberg
2011-10-29 0:14 Magnus Granberg
2011-09-28 10:53 Magnus Granberg
2011-09-28 0:33 Magnus Granberg
2011-09-26 23:25 Magnus Granberg
2011-08-31 1:46 Magnus Granberg
2011-08-30 23:02 Magnus Granberg
2011-07-31 13:43 Magnus Granberg
2011-04-24 22:13 Magnus Granberg
2011-04-23 14:23 Magnus Granberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1335834702.013ae1a327652f270df045b3779f29aaaeb4a2c1.zorry@gentoo \
--to=zorry@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox