2016-10-12 13:42:22 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
"""
|
|
|
|
This script creates unified ISOs for a specified compose.
|
|
|
|
Unified ISOs are created per architecture and contain all variant packages and
|
|
|
|
repos.
|
|
|
|
"""
|
|
|
|
|
|
|
|
import argparse
|
|
|
|
|
|
|
|
|
|
|
|
from pungi_utils.unified_isos import UnifiedISO
|
|
|
|
|
|
|
|
|
|
|
|
def parse_args():
|
|
|
|
parser = argparse.ArgumentParser(add_help=True)
|
|
|
|
|
|
|
|
parser.add_argument(
|
2020-02-03 03:50:06 +00:00
|
|
|
"compose", metavar="<compose-path>", nargs=1, help="path to compose",
|
2016-10-12 13:42:22 +00:00
|
|
|
)
|
2020-06-08 11:46:03 +00:00
|
|
|
parser.add_argument(
|
|
|
|
"--arch",
|
|
|
|
metavar="<arch>",
|
|
|
|
dest="arches",
|
|
|
|
action="append",
|
|
|
|
help="only generate ISOs for specified arch",
|
|
|
|
)
|
2016-10-12 13:42:22 +00:00
|
|
|
|
|
|
|
return parser.parse_args()
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
args = parse_args()
|
2020-06-08 11:46:03 +00:00
|
|
|
iso = UnifiedISO(args.compose[0], arches=args.arches)
|
2016-10-12 13:42:22 +00:00
|
|
|
iso.create(delete_temp=True)
|