mirror of
https://github.com/niess/python-appimage.git
synced 2026-03-14 04:10:15 +01:00
Get images to the cache
This commit is contained in:
@@ -13,14 +13,14 @@ __all__ = ['execute']
|
||||
def _unpack_args(args):
|
||||
'''Unpack command line arguments
|
||||
'''
|
||||
return args.tag, args.abi
|
||||
return args.tag, args.abi, args.clean
|
||||
|
||||
|
||||
def execute(tag, abi):
|
||||
def execute(tag, abi, clean):
|
||||
'''Build a Python AppImage using a Manylinux image
|
||||
'''
|
||||
|
||||
image = ensure_image(tag)
|
||||
image = ensure_image(tag, clean=clean)
|
||||
|
||||
pwd = os.getcwd()
|
||||
with TemporaryDirectory() as tmpdir:
|
||||
|
||||
18
python_appimage/commands/cache/get.py
vendored
Normal file
18
python_appimage/commands/cache/get.py
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
from ...manylinux import ensure_image
|
||||
|
||||
|
||||
__all__ = ['execute']
|
||||
|
||||
|
||||
def _unpack_args(args):
|
||||
'''Unpack command line arguments
|
||||
'''
|
||||
return (args.tags, args.extract)
|
||||
|
||||
|
||||
def execute(images, extract):
|
||||
'''Download image(s) to the cache
|
||||
'''
|
||||
|
||||
for image in images:
|
||||
ensure_image(image, extract=extract)
|
||||
Reference in New Issue
Block a user