ffmpeg-skill 3.6.5 → 3.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/scripts/verify.py CHANGED
@@ -156,6 +156,12 @@ def main() -> int:
156
156
  apply_common(args)
157
157
  if STATE.plan:
158
158
  die("verify.py does not support --plan: its steps run for real (it ignores --dry-run too)")
159
+ ignored_dry_run = STATE.dry_run
160
+ if ignored_dry_run:
161
+ # A240: the flag is accepted and ignored (docs/design-decisions.md "Dry run"); the steps
162
+ # run and write, so the document says dry_run: false and a note says the flag was ignored
163
+ STATE.dry_run = False
164
+ info("--dry-run is ignored by verify.py: its steps run and write their outputs")
159
165
 
160
166
  files = collect(args.paths)
161
167
  tmp = None
@@ -267,11 +273,12 @@ def main() -> int:
267
273
  print(report)
268
274
  if tmp and not args.keep:
269
275
  tmp.cleanup()
276
+ notes = (["--dry-run is ignored by verify.py: its steps ran and wrote their outputs"] if ignored_dry_run else [])
270
277
  if failed:
271
278
  die(f"{failed} of {total} verification steps failed", kind="verification", output=None, dry_run=STATE.dry_run,
272
- report=args.report, files=results, failed=failed, total=total)
279
+ report=args.report, files=results, failed=failed, total=total, **({"notes": notes} if notes else {}))
273
280
  if args.json:
274
- emit(None, report=args.report, files=results, failed=failed, total=total)
281
+ emit(None, report=args.report, files=results, failed=failed, total=total, **({"notes": notes} if notes else {}))
275
282
  return 0
276
283
 
277
284