diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-02-03 13:44:38 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-02-03 13:44:38 +0000 |
| commit | f453c700843a6eee4036c2ed6bd75a27ee0b225c (patch) | |
| tree | ddcfec3881a2660d2900493e5a854d1953ea8383 | |
| parent | db7fb903bc236c34ee05ea44a6274bf7afee6559 (diff) | |
Add arch- targets.
| -rwxr-xr-x | cdist | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -542,6 +542,11 @@ def target_factory(s, debug, work): if len(p) != 3: raise Error("Bad Linux target name `%s'; must be something like ubuntu-12.04-32 (i.e. distro-version-bits)" % s) target = ChrootTarget(p[0], p[1], int(p[2]), work) + elif s.startswith('arch-'): + p = s.split('-') + if len(p) != 2: + raise Error("Bad Arch target name `%s'; must be arch-32 or arch-64") + target = ChrootTarget(p[0], None, p[1], work) elif s == 'raspbian': target = ChrootTarget(s, None, None, work) elif s == 'host': |
