Upgrade from SHA to tag and tag to SHA
Test: TreeHugger
Change-Id: I86260cb89fae38bb29c0c9e26e1cae42f58c2f66
diff --git a/crates_updater.py b/crates_updater.py
index 46031e4..053cf6e 100644
--- a/crates_updater.py
+++ b/crates_updater.py
@@ -138,8 +138,8 @@
data = json.loads(request.read().decode())
self.download_url = "https://crates.io" + data["version"]["dl_path"]
- def use_current_as_latest(self):
- Updater.use_current_as_latest(self)
+ def set_new_version_to_old(self):
+ super().set_new_version_to_old()
# A shortcut to use the static download path.
self.download_url = f"https://static.crates.io/crates/{self.package}/" \
f"{self.package}-{self._new_identifier.version}.crate"