aboutsummaryrefslogtreecommitdiff
path: root/repos/base.py
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-03-29 18:52:31 -0600
committerMelody Horn <melody@boringcactus.com>2021-03-29 18:52:31 -0600
commit563eda8e7772a49ebe242b65849359db0a077672 (patch)
tree88cb421fba5982620f1d7f657a2fb2f86588c046 /repos/base.py
parente7b83c7c57483277fa243dd7ff1068c8ff33438f (diff)
downloadwhere-packaged-563eda8e7772a49ebe242b65849359db0a077672.tar.gz
where-packaged-563eda8e7772a49ebe242b65849359db0a077672.zip
flatten repository metastructure
Diffstat (limited to 'repos/base.py')
-rw-r--r--repos/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/repos/base.py b/repos/base.py
index 1bd4ae3..c7790c1 100644
--- a/repos/base.py
+++ b/repos/base.py
@@ -60,7 +60,7 @@ class Repository:
index_url: str
parse: Callable[[Path], Mapping[str, Version]]
- def _full_name(self):
+ def full_name(self):
return f'{self.family} {self.repo}'
def _cache_dir(self) -> Path:
@@ -88,7 +88,7 @@ class Repository:
response = requests.get(self.index_url, headers=headers, stream=True)
if response.status_code != requests.codes.not_modified:
response.raise_for_status()
- print('Re-downloading', self._full_name())
+ print('Re-downloading', self.full_name())
with downloaded_file.open('wb') as f:
for chunk in response.iter_content(chunk_size=256):
f.write(chunk)