diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-07-12 22:49:21 +0000 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-07-23 11:42:27 +0200 |
commit | f9bef6b954d6945acf9616d69acb1ecf69061235 (patch) | |
tree | e4c98b43b40991c7ca33b5912c80f026c43ec3ef /bin/reproducible_common.py | |
parent | e56eb4a29b940a18b3bb5e2890c9db57024bec7f (diff) | |
download | jenkins.debian.net-f9bef6b954d6945acf9616d69acb1ecf69061235.tar.xz |
reproducible move the bcolors class to _common.py
Diffstat (limited to 'bin/reproducible_common.py')
-rwxr-xr-x | bin/reproducible_common.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py index 7b3ed417..99db4863 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>'), |