Fix pack command logging '0 packages with 0 files'
This happens while expanding additional_patterns, which might match 0
files. Those files go through package identification, and that logs a
count.
Now only do package identification if we find additional files, and log
that we are doing those files beforehand.
@@ -61,6 +61,9 @@ def canonicalize_config(packages, other_files, additional_patterns,
"""Expands ``additional_patterns`` from the configuration file.
"""
add_files = expand_patterns(additional_patterns)
+ if add_files:
+ logging.info("Found %d files from expanding additional_patterns...",
+ len(add_files))
if sort_packages:
add_files, add_packages = identify_packages(add_files)
else:
