Skip to content

Commit dd44bc5

Browse files
committed
dry run for manifest
1 parent bbb0f41 commit dd44bc5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

machine/mirror/wort-mirror.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ async def main(args):
9898
print(*[str(e)[:50] for e in eg.exceptions])
9999

100100
# copy manifest
101+
if args.dry_run:
102+
print(f"download: {manifest_url}")
103+
return
104+
101105
async with client.stream("GET", "SOURMASH-MANIFEST.parquet") as response:
102106
async with aiofiles.tempfile.NamedTemporaryFile() as f:
103107
async for chnk in response.aiter_raw(1024 * 1024):
@@ -149,7 +153,7 @@ async def download_sig(location, sha256, basedir, client, limiter, dry_run):
149153
parser.add_argument(
150154
"-d",
151155
"--dry-run",
152-
default=True,
156+
default=False,
153157
action="store_true",
154158
help="Skip download, useful to check what would be downloaded",
155159
)

0 commit comments

Comments
 (0)