summaryrefslogtreecommitdiff
path: root/portato/backend
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/backend/flags.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/portato/backend/flags.py b/portato/backend/flags.py
index 0c3713d..5d786b8 100644
--- a/portato/backend/flags.py
+++ b/portato/backend/flags.py
@@ -18,7 +18,7 @@ import itertools as itt
from subprocess import Popen, PIPE # needed for grep
from . import system, is_package
-from ..helper import debug, error, unique_array
+from ..helper import debug, error, warning, unique_array
CONFIG = {
"usefile" : "portato",
@@ -671,7 +671,7 @@ def set_testing (pkg, enable):
arch = pkg.get_global_settings("ARCH")
cpv = pkg.get_cpv()
- if not cpv in newTesting:
+ if not cpv in newTesting:
newTesting[cpv] = []
for file, line in newTesting[cpv]:
@@ -685,7 +685,14 @@ def set_testing (pkg, enable):
test = get_data(pkg, CONST.testing_path())
debug("data (test): %s", str(test))
for file, line, crit, flags in test:
- if pkg.matches(crit) and flags[0] == "~"+arch:
+ try:
+ flagMatches = flags[0] == "~"+arch
+ except IndexError: # no flags
+ warning(_("Line %(line)s in file %(file)s misses a keyword (i.e. '~x86')."), {'line' : line, 'file': file})
+ debug("No keyword. Assuming match.")
+ flagMatches = True
+
+ if pkg.matches(crit) and flagMatches:
newTesting[cpv].append((file, line))
else:
if CONST.testing_path_is_dir():
der'>2013-11-06Colorscheme for virtual console.René 'Necoro' Neumann1-1/+5 2013-11-01Do not try to set window title and stuff in linux consoleRené 'Necoro' Neumann1-0/+3 2013-10-30Set terminal title not only on path change, but for each new prompt.René 'Necoro' Neumann1-2/+2 2013-10-22cwd-spawn: Use M-Return instead of M-o for consistency.René 'Necoro' Neumann1-2/+2 2013-10-22Add cwd-spawn to urxvt to allow spawning a new terminal from the currentRené 'Necoro' Neumann3-2/+199 working dir. 2013-10-22Use chpwd_functions and precmd_functions instead of putting everything inRené 'Necoro' Neumann1-19/+23 precmd(). 2013-09-30urxvt: execute the wgetpaste check each timeRené 'Necoro' Neumann1-2/+5 2013-09-30urxvt: wgetpaste fixRené 'Necoro' Neumann1-4/+4 2013-09-30Allow HOME variable in .Xresources.René 'Necoro' Neumann2-3/+3 2013-09-30wgetpaste support for urxvt.René 'Necoro' Neumann2-1/+28 2013-09-30Urxvt autotransform for <filename>:<line>.René 'Necoro' Neumann1-1/+4 2013-09-30Remove tabbed(x) from urxvt. We use i3 -- no need for it.René 'Necoro' Neumann1-9/+0 2013-09-30Do not display icon in urxvt. It's not supported by i3 anyway.René 'Necoro' Neumann1-1/+1 2013-09-29Remove wrong monitors lineRené 'Necoro' Neumann1-1/+0 2013-09-29Delete vimperator paste plugin -- seems not to work anymore with new FFRené 'Necoro' Neumann1-266/+0 versions. And it wasn't used anyway. 2013-09-29Use $HOST instead of Cauchiy in titleRené 'Necoro' Neumann1-1/+1 2013-09-24Remove herbstluftwmRené 'Necoro' Neumann1-1/+0 2013-09-24Conky changesRené 'Necoro' Neumann2-5/+13 2013-09-15Remove trailing slash from \~ulpRené 'Necoro' Neumann1-1/+1 2013-09-15Make cci explicitly use python2René 'Necoro' Neumann1-1/+1 2013-09-10Node/NPM preparationRené 'Necoro' Neumann3-1/+13