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 <http://www.gnu.org/licenses/>.
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:
continue
unfetched_modules = True
else:
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