's'
This commit is contained in:
@@ -26,6 +26,12 @@ def get_image_dir():
|
||||
return ensure_dir(IMAGE_ROOT)
|
||||
|
||||
|
||||
def is_offline_only():
|
||||
"""If true, redroid build must not use the network (env REDROID_OFFLINE or CLI --offline)."""
|
||||
v = os.environ.get("REDROID_OFFLINE", "").strip().lower()
|
||||
return v in ("1", "true", "yes", "on")
|
||||
|
||||
|
||||
def file_md5(path, block_size=1024 * 1024):
|
||||
hasher = hashlib.md5()
|
||||
with open(path, "rb") as handle:
|
||||
|
||||
Reference in New Issue
Block a user