return git_get_tarball(v, self)
+class GitSearchPath(TarrableSearchPath):
+ pass
+
+
+class ChannelSearchPath(TarrableSearchPath):
+ pass
+
+
def compare(a: str, b: str) -> Tuple[List[str], List[str], List[str]]:
def throw(error: OSError) -> None:
def read_search_path(conf: configparser.SectionProxy) -> SearchPath:
if 'alias_of' in conf:
return AliasSearchPath(**dict(conf.items()))
- return TarrableSearchPath(**dict(conf.items()))
+ if 'channel_url' in conf:
+ return ChannelSearchPath(**dict(conf.items()))
+ return GitSearchPath(**dict(conf.items()))
def read_config(filename: str) -> configparser.ConfigParser: