repo create: set api: vX.Y (#49344)
This commit is contained in:
parent
ca977ea9e1
commit
fd62f0f3a8
@ -1406,6 +1406,8 @@ def create_repo(root, namespace=None, subdir=packages_dir_name):
|
||||
config.write(f" namespace: '{namespace}'\n")
|
||||
if subdir != packages_dir_name:
|
||||
config.write(f" subdirectory: '{subdir}'\n")
|
||||
x, y = spack.package_api_version
|
||||
config.write(f" api: v{x}.{y}\n")
|
||||
|
||||
except OSError as e:
|
||||
# try to clean up.
|
||||
|
Loading…
Reference in New Issue
Block a user