Verified Commit 7c8711a8 authored by Paul Wise's avatar Paul Wise

wrap-and-sort: allow using --dry-run without --verbose

Previously modified files would only be printed with --verbose turned on.

This change allows wrap-and-sort to be less verbose with --dry-run on.
parent 706ef76f
Pipeline #7233 passed with stage
in 5 minutes and 8 seconds
......@@ -40,6 +40,9 @@ devscripts (2.18.3) UNRELEASED; urgency=medium
* debrepro:
+ Cleanup files if package is reproducible.
[ Paul Wise ]
* wrap-and-sort: allow using --dry-run without --verbose
-- Pierre-Elliott Bécue <becue@crans.org> Thu, 10 May 2018 13:23:58 +0200
devscripts (2.18.2) unstable; urgency=medium
......
......@@ -300,7 +300,7 @@ def main():
modified_files = wrap_and_sort(args)
# Only report at the end, to avoid potential clash with --verbose
if modified_files and args.verbose:
if modified_files and (args.verbose or args.dry_run):
if args.dry_run:
header = "--- Dry run, these files would be modified ---"
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment