[Qa-jenkins-scm] [jenkins.debian.net] 03/03: reproducible move the bcolors class to _common.py

Holger Levsen holger at moszumanska.debian.org
Thu Jul 23 09:43:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit f9bef6b954d6945acf9616d69acb1ecf69061235
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Sun Jul 12 22:49:21 2015 +0000

    reproducible move the bcolors class to _common.py
---
 bin/reproducible_breakages.py        |  8 --------
 bin/reproducible_common.py           | 10 ++++++++++
 bin/reproducible_remote_scheduler.py | 11 -----------
 3 files changed, 10 insertions(+), 19 deletions(-)

diff --git a/bin/reproducible_breakages.py b/bin/reproducible_breakages.py
index 88c4bca..ba42fb7 100755
--- a/bin/reproducible_breakages.py
+++ b/bin/reproducible_breakages.py
@@ -11,14 +11,6 @@
 from reproducible_common import *
 
 
-class bcolors:
-    BOLD = '\033[1m'
-    UNDERLINE = '\033[4m'
-    WARN = '\033[93m' + UNDERLINE
-    FAIL = '\033[91m' + BOLD + UNDERLINE
-    ENDC = '\033[0m'
-
-
 def unrep_with_dbd_issues():
     log.info('running unrep_with_dbd_issues check...')
     without_dbd = []
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 7b3ed41..99db486 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -238,6 +238,16 @@ def print_critical_message(msg):
     print('\n\n\n')
 
 
+class bcolors:
+    BOLD = '\033[1m'
+    UNDERLINE = '\033[4m'
+    RED = '\033[91m'
+    GOOD = '\033[92m'
+    WARN = '\033[93m' + UNDERLINE
+    FAIL = RED + BOLD + UNDERLINE
+    ENDC = '\033[0m'
+
+
 def _gen_links(suite, arch):
     links = [
         ('last_24h', '<li><a href="/{suite}/{arch}/index_last_24h.html">packages tested in the last 24h</a></li>'),
diff --git a/bin/reproducible_remote_scheduler.py b/bin/reproducible_remote_scheduler.py
index 9658de3..28417c6 100755
--- a/bin/reproducible_remote_scheduler.py
+++ b/bin/reproducible_remote_scheduler.py
@@ -49,17 +49,6 @@ scheduling_args = parser.parse_known_args()[0]
 from reproducible_common import *
 from reproducible_html_indexes import generate_schedule
 
-
-class bcolors:
-    BOLD = '\033[1m'
-    UNDERLINE = '\033[4m'
-    RED = '\033[91m'
-    GOOD = '\033[92m'
-    WARN = '\033[93m' + UNDERLINE
-    FAIL = RED + BOLD + UNDERLINE
-    ENDC = '\033[0m'
-
-
 # this variable is expected to come from the remote host
 try:
     requester = os.environ['LC_USER']

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list