versions are ints

This commit is contained in:
Motiejus Jakštys 2021-05-24 00:11:58 +03:00
parent e39f7c712a
commit 8596372ce6

View File

@ -62,6 +62,8 @@ def _lxcconfig_impl(ctx):
)
def lxcbundle(name, src, version):
if type(version) != "int":
fail("version must be an int, got {}".format(type(version)))
rootfsname = name + "/_/rootfs"
rootfs(name = rootfsname, src = src, out = rootfsname + ".tar")
lxcconfig(name, src = src, out = name + "/_/meta.tar.xz")