mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-04 20:54:47 +02:00
dockersetup: use .zst not .zstd
The default file extension for zstd compression is .zst Signed-off-by: Tim Orling <tim.orling@konsulko.com>
This commit is contained in:
parent
b0af957ac7
commit
98ae2206b5
|
@ -54,7 +54,7 @@ def get_args():
|
|||
parser.add_argument('-s', '--https-proxy', type=str, help='https proxy in the format http://<myproxy:port>', default=default_https_proxy, required=False)
|
||||
parser.add_argument('-S', '--socks-proxy', type=str, help='socks proxy in the format socks://myproxy:port>', default=default_socks_proxy, required=False)
|
||||
parser.add_argument('-N', '--no-proxy', type=str, help='Comma-separated list of hosts that should not be connected to via the proxy', default=default_no_proxy, required=False)
|
||||
parser.add_argument('-d', '--databasefile', type=str, help='Location of your database file to import. Must be a .sql, .sql.gz or .sql.zstd file.', required=False)
|
||||
parser.add_argument('-d', '--databasefile', type=str, help='Location of your database file to import. Must be a .sql, .sql.gz or .sql.zst file.', required=False)
|
||||
parser.add_argument('-e', '--email-host', type=str, help='Email host for sending messages (optionally with :port if not 25)', required=False)
|
||||
parser.add_argument('--email-user', type=str, help='User name to use when connecting to email host', required=False)
|
||||
parser.add_argument('--email-password', type=str, help='Password to use when connecting to email host', required=False)
|
||||
|
@ -808,7 +808,7 @@ if not args.update:
|
|||
# Import the user's supplied data
|
||||
if args.databasefile:
|
||||
filename, file_extension = os.path.splitext(args.databasefile)
|
||||
if file_extension == ".zstd":
|
||||
if file_extension == ".zst":
|
||||
return_code = subprocess.call("zstd -t %s > /dev/null 2>&1" % quote(args.databasefile), shell=True)
|
||||
if return_code == 0:
|
||||
catcmd = 'zstdcat'
|
||||
|
|
Loading…
Reference in New Issue
Block a user