The `required` argument to `parser.add_subparser` is only introduced
in Python 3.7. SLE15SP4 has Python 3.6.
`platform.architecture` is a method that needs to be called.
Change-Id: Ie5ba39d94763701af15848d6bed66b16bede524d
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
description="Fetch and create a stub environment from common job artifacts",
)
# Commands: fetch (implies activate), activate, deactivate
description="Fetch and create a stub environment from common job artifacts",
)
# Commands: fetch (implies activate), activate, deactivate
- subparsers = parser.add_subparsers(required=True, dest="command")
+ subparsers = parser.add_subparsers(dest="command")
parser.add_argument(
"-v", "--verbose", action="count", help="Increase the verbosity"
)
parser.add_argument(
"-v", "--verbose", action="count", help="Increase the verbosity"
)
pathlib.Path("/etc/products.d/SLES.prod").exists()
or pathlib.Path("/etc/redhat-release").exists()
or pathlib.Path("/etc/yocto-release").exists()
pathlib.Path("/etc/products.d/SLES.prod").exists()
or pathlib.Path("/etc/redhat-release").exists()
or pathlib.Path("/etc/yocto-release").exists()
- ) and "64bit" in platform.architecture:
+ ) and "64bit" in platform.architecture():
lib_dir_arch = "{}64"
so_re = re.compile("^.*\.so\.\d+\.\d+\.\d+$")
lib_dir_arch = "{}64"
so_re = re.compile("^.*\.so\.\d+\.\d+\.\d+$")
pathlib.Path("/etc/products.d/SLES.prod").exists()
or pathlib.Path("/etc/redhat-release").exists()
or pathlib.Path("/etc/yocto-release").exists()
pathlib.Path("/etc/products.d/SLES.prod").exists()
or pathlib.Path("/etc/redhat-release").exists()
or pathlib.Path("/etc/yocto-release").exists()
- ) and "64bit" in platform.architecture:
+ ) and "64bit" in platform.architecture():
lib_dir_arch = "{}64"
env = {}
lib_dir_arch = "{}64"
env = {}