Improvements for fetch.local and fetch.fetcher

parent e058e7a5
......@@ -28,3 +28,10 @@ class Fetcher(object):
def fetch(self, module):
"""Stub method, this must be implemented by the code fetcher"""
pass
@staticmethod
def check_id(path):
"""Stub method, this must return a string with the version identifier
for the selected fetcher (revision, commit...)"""
pass
......@@ -19,13 +19,23 @@
# You should have received a copy of the GNU General Public License
# along with Hdlmake. If not, see <http://www.gnu.org/licenses/>.
"""Module providing the fetcher for local HDLMake modules"""
from .fetcher import Fetcher
class Local(Fetcher):
"""This class provides the Local fetcher instances"""
def __init__(self):
pass
def fetch(self, module):
pass
@staticmethod
def check_id(path):
"""Get the ID for Local sources"""
pass
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