Finish the program if not all of the modules are fetched

parent 0dcb9508
...@@ -47,7 +47,7 @@ class ActionCore(Action): ...@@ -47,7 +47,7 @@ class ActionCore(Action):
self.svn_backend = Svn() self.svn_backend = Svn()
self.local_backend = Local() self.local_backend = Local()
def _report_fetch_status(self): def _check_all_fetched(self):
"""Check if every module in the pool is fetched""" """Check if every module in the pool is fetched"""
if not len([m for m in self if not m.isfetched]) == 0: if not len([m for m in self if not m.isfetched]) == 0:
...@@ -55,12 +55,11 @@ class ActionCore(Action): ...@@ -55,12 +55,11 @@ class ActionCore(Action):
"Fetching should be done before continuing.\n" "Fetching should be done before continuing.\n"
"The following modules remains unfetched:\n" "The following modules remains unfetched:\n"
"%s", "%s",
"\n".join([str(m) for m in self if not m.isfetched]) "\n".join([str(m) for m in self if not m.isfetched]))
) quit()
def makefile(self): def makefile(self):
"""Write the Makefile for the current design""" """Write the Makefile for the current design"""
self._report_fetch_status() self._check_all_fetched()
self.build_file_set() self.build_file_set()
self.solve_file_set() self.solve_file_set()
combined_fileset = self.parseable_fileset combined_fileset = self.parseable_fileset
......
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