compose: add distro argument

The plugin expects this, or it falls back to name-version, which is
not the right thing in most cases.
This commit is contained in:
Christian Kellner 2020-09-07 18:25:27 +02:00
parent 3ef4d5e566
commit 0783e7491e

View file

@ -24,6 +24,7 @@ def main():
default=False, action="store_true")
parser.add_argument("name", metavar="NAME", help='The distribution name')
parser.add_argument("version", metavar="VERSION", help='The distribution version')
parser.add_argument("distro", metavar="DISTRO", help='The distribution')
parser.add_argument("target", metavar="TARGET", help='The build target')
parser.add_argument("arch", metavar="ARCHITECTURE", help='Request the architecture',
type=str, nargs="+")
@ -38,7 +39,10 @@ def main():
name, version, arch, target = args.name, args.version, args.arch, args.target
opts = {}
opts = {
"distro": args.distro,
}
if args.repo:
opts["repo"] = ",".join(args.repo)