public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/tinderbox-cluster:master commit in: pym/tbc/repoman/, pym/tbc/
@ 2015-08-07 14:05 Magnus Granberg
  0 siblings, 0 replies; only message in thread
From: Magnus Granberg @ 2015-08-07 14:05 UTC (permalink / raw
  To: gentoo-commits

commit:     bef60d0e1f8aa0a01196b41071f82026d3e27fb0
Author:     Magnus Granberg <zorry <AT> gentoo <DOT> org>
AuthorDate: Fri Aug  7 14:04:39 2015 +0000
Commit:     Magnus Granberg <zorry <AT> gentoo <DOT> org>
CommitDate: Fri Aug  7 14:04:39 2015 +0000
URL:        https://gitweb.gentoo.org/proj/tinderbox-cluster.git/commit/?id=bef60d0e

small fixes for repoman

 pym/tbc/build_log.py         | 4 ++--
 pym/tbc/package.py           | 1 +
 pym/tbc/repoman/utilities.py | 4 ++--
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/pym/tbc/build_log.py b/pym/tbc/build_log.py
index d72ef91..bbe35d4 100644
--- a/pym/tbc/build_log.py
+++ b/pym/tbc/build_log.py
@@ -197,7 +197,7 @@ def search_buildlog(session, logfile_text_dict, max_text_lines):
 			new_hilight_dict[adict3['startline']] = adict3
 	return new_hilight_dict
 
-def get_buildlog_info(session, settings, pkg, build_dict):
+def get_buildlog_info(session, settings, pkg, build_dict, config_id):
 	myportdb = portage.portdbapi(mysettings=settings)
 	logfile_text_dict, max_text_lines = get_log_text_dict(settings.get("PORTAGE_LOG_FILE"))
 	hilight_dict = search_buildlog(session, logfile_text_dict, max_text_lines)
@@ -275,7 +275,7 @@ def add_buildlog_main(settings, pkg, trees):
 		session.close
 		return
 	build_log_dict = {}
-	build_log_dict = get_buildlog_info(session, settings, pkg, build_dict)
+	build_log_dict = get_buildlog_info(session, settings, pkg, build_dict, config_id)
 	error_log_list = build_log_dict['error_log_list']
 	build_error = ""
 	log_hash = hashlib.sha256()

diff --git a/pym/tbc/package.py b/pym/tbc/package.py
index 0bb41eb..980b089 100644
--- a/pym/tbc/package.py
+++ b/pym/tbc/package.py
@@ -4,6 +4,7 @@
 from __future__ import print_function
 import re
 import hashlib
+import os
 import portage
 from portage.xml.metadata import MetaDataXML
 from tbc.flags import tbc_use_flags

diff --git a/pym/tbc/repoman/utilities.py b/pym/tbc/repoman/utilities.py
index b1871db..b6ed825 100644
--- a/pym/tbc/repoman/utilities.py
+++ b/pym/tbc/repoman/utilities.py
@@ -240,7 +240,7 @@ def get_commit_message_with_stdin():
 	return commitmessage
 
 
-def FindPortdir(settings, pkdir):
+def FindPortdir(settings, pkgdir):
 	""" Try to figure out what repo we are in and whether we are in a regular
 	tree or an overlay.
 
@@ -276,7 +276,7 @@ def FindPortdir(settings, pkdir):
 		# the current working directory (from the shell).
 		location = pwd
 
-	if not pkdir is None:
+	if not pkgdir is None:
 		location = pkgdir
 	location = normalize_path(location)
 


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-08-07 14:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-07 14:05 [gentoo-commits] proj/tinderbox-cluster:master commit in: pym/tbc/repoman/, pym/tbc/ Magnus Granberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox