Skip to content

Commit 2fd993d

Browse files
committed
allow overwrite if --merge
1 parent 9200f3d commit 2fd993d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sigs-to-manifest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,13 @@ def main():
7575
return 0
7676

7777
if args.merge_previous:
78-
notify(f"merging {len(previous.rows)} previous rows into current.")
78+
# note, this is important for CSV manifests, but not for SQL manifests.
79+
notify(f"merging previous rows into current.")
7980
rows.extend(previous.rows)
8081

8182
m = CollectionManifest(rows)
82-
m.write_to_filename(args.output, database_format=args.database_format)
83+
m.write_to_filename(args.output, database_format=args.database_format,
84+
ok_if_exists=args.merge_previous)
8385

8486
notify(f"saved {len(m)} manifest rows to '{args.output}'")
8587

0 commit comments

Comments
 (0)