Bogus
Details
Details
Diff Detail
Diff Detail
- Repository
- rLTRN libtaskotron
- Branch
- feature/linter
- Lint
Lint Skipped Excuse: pyflakes not installed - Unit
No Unit Test Coverage
Lint Skipped | Excuse: pyflakes not installed |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
A | M | .arclint (9 lines) | ||
M | libtaskotron/arch_utils.py (4 lines) |
Commit | Tree | Parents | Author | Summary | Date |
---|---|---|---|---|---|
93a632e1abc0 | 5a13a220aef4 | f11060288a8f | Josef Skladanka | alkl | Oct 16 2014, 11:42 AM |
f11060288a8f | be1a03c8b7f1 | 82111cacdffd | Josef Skladanka | Testing linters (Show More…) | Oct 16 2014, 11:35 AM |
82111cacdffd | 360838dc70ed | 696101f97ff3 | Josef Skladanka | klk | Oct 16 2014, 11:33 AM |
696101f97ff3 | adbb45085708 | 62cb07acf77a | Josef Skladanka | lkjlk | Oct 16 2014, 11:31 AM |
62cb07acf77a | 360838dc70ed | ea0ead79b70f | Josef Skladanka | test (Show More…) | Oct 16 2014, 11:29 AM |
1 | { | ||||
---|---|---|---|---|---|
2 | "linters": { | ||||
3 | "pyflakes lint": { | ||||
4 | "type": "pyflakes", | ||||
5 | "include": "(\\.py$)" | ||||
6 | } | ||||
7 | } | ||||
8 | } | ||||
9 | |
Show All 19 Lines | 8 | class Arches(): | |||
---|---|---|---|---|---|
20 | base = ['i386', 'x86_64', 'armhfp'] | 20 | base = ['i386', 'x86_64', 'armhfp'] | ||
21 | 21 | | |||
22 | #: meta architectures | 22 | #: meta architectures | ||
23 | meta = ['noarch', 'src'] | 23 | meta = ['noarch', 'src'] | ||
24 | 24 | | |||
25 | def basearch(arch=None): | 25 | def basearch(arch=None): | ||
26 | ''' | 26 | ''' | ||
27 | This returns the 'base' architecture identifier for a specified architecture | 27 | This returns the 'base' architecture identifier for a specified architecture | ||
28 | | ||||
29 | | ||||
28 | (e.g. ``i386`` for ``i[3-6]86``), to be used by YUM etc. | 30 | (e.g. ``i386`` for ``i[3-6]86``), to be used by YUM etc. | ||
29 | 31 | | |||
30 | :param str arch: an architecture to be converted to a basearch. If ``None``, | 32 | :param str arch: an architecture to be converted to a basearch. If ``None``, | ||
31 | then the arch of the current machine is used. | 33 | then the arch of the current machine is used. | ||
32 | :return: basearch, or ``arch`` if no basearch was found for it | 34 | :return: basearch, or ``arch`` if no basearch was found for it | ||
33 | :rtype: str | 35 | :rtype: str | ||
34 | ''' | 36 | ''' | ||
35 | if arch is None: | 37 | if arch is None: | ||
36 | arch = os.uname()[4] | 38 | arch = os.uname()[4] | ||
37 | if arch in ['i386', 'i486', 'i586', 'i686']: | 39 | if arch in ['i386', 'i486', 'i586', 'i686']: | ||
38 | arch = 'i386' | 40 | arch = 'i386' | ||
39 | if arch in ['armhfp', 'arm7hl']: | 41 | if arch in ['armhfp', 'arm7hl']: | ||
40 | arch = 'armhfp' | 42 | arch = 'armhfp' | ||
41 | return arch | 43 | return arch | ||
42 | No newline at end of file | |