Skip to content

Commit f2cbb11

Browse files
1 parent 52457bf commit f2cbb11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/upgrade.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ def is_compatible(self) -> bool:
7272
except KeyError as exception:
7373
logger.debug("`versions` missing from peer relation", exc_info=exception)
7474
return False
75-
# TODO charm versioning: remove `.split("-")` (which removes git hash before comparing)
76-
previous_version_strs["charm"] = previous_version_strs["charm"].split("-")[0]
75+
# TODO charm versioning: remove `.split("+")` (which removes git hash before comparing)
76+
previous_version_strs["charm"] = previous_version_strs["charm"].split("+")[0]
7777
previous_versions: dict[str, poetry_version.Version] = {
7878
key: poetry_version.Version.parse(value)
7979
for key, value in previous_version_strs.items()
8080
}
8181
current_version_strs = copy.copy(self._current_versions)
82-
current_version_strs["charm"] = current_version_strs["charm"].split("-")[0]
82+
current_version_strs["charm"] = current_version_strs["charm"].split("+")[0]
8383
current_versions = {
8484
key: poetry_version.Version.parse(value) for key, value in current_version_strs.items()
8585
}

0 commit comments

Comments
 (0)