diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-05-22 16:35:53 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-05-22 17:25:55 +0200 |
commit | a1050583443cb8a9f2c9bd96dee8c32c85315012 (patch) | |
tree | cf8aebb661d08547229069077ed7ab7f24f202bf /commands | |
parent | dcb829f4c9342b93e120bf656a47fbf136f07bff (diff) | |
download | clufter-a1050583443cb8a9f2c9bd96dee8c32c85315012.tar.gz clufter-a1050583443cb8a9f2c9bd96dee8c32c85315012.tar.xz clufter-a1050583443cb8a9f2c9bd96dee8c32c85315012.zip |
Introduce an explicit notion about target system+distro
...which is, in an unified way, used for both deciding alias targets
and for decisions within commands/filters.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'commands')
-rw-r--r-- | commands/ccs2pcs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/ccs2pcs.py b/commands/ccs2pcs.py index 53056cd..ee9ba91 100644 --- a/commands/ccs2pcs.py +++ b/commands/ccs2pcs.py @@ -100,7 +100,7 @@ def ccs2pcs_needle(cmd_ctxt, @CommandAlias.deco def ccs2pcs(cmds, system, system_extra): # unless el <7.0 (XXX identification of SL and other derivates unknown) - if system == 'Linux' and system_extra[0] in ('redhat', 'centos'): + if system == 'linux' and system_extra[0] in ('redhat', 'centos'): v = system_extra[1] if system_extra else '7' # default if undecidable v = v[:-len(v.lstrip('0123456789.'))] or str.isdigit(v[0]) and v or '0' v = tuple(map(int, (v.rstrip('.') + '.0.0').split('.')[:2])) |