Add a warning to list-files when some modules have not been fetched

parent de2ec00d
......@@ -20,13 +20,16 @@
# along with Hdlmake. If not, see <>.
from .action import Action
import logging
class ListFiles(Action):
def run(self):
unfetched_modules = False
files_str = []
for m in self.modules_pool:
if not m.isfetched:
unfetched_modules = True
files_str.append(self.options.delimiter.join([f.path for f in m.files]))
if unfetched_modules: logging.warning("Some of the modules have not been fetched!")
print(" ".join(files_str))
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