File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -72,14 +72,14 @@ def is_compatible(self) -> bool:
72
72
except KeyError as exception :
73
73
logger .debug ("`versions` missing from peer relation" , exc_info = exception )
74
74
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 ]
77
77
previous_versions : dict [str , poetry_version .Version ] = {
78
78
key : poetry_version .Version .parse (value )
79
79
for key , value in previous_version_strs .items ()
80
80
}
81
81
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 ]
83
83
current_versions = {
84
84
key : poetry_version .Version .parse (value ) for key , value in current_version_strs .items ()
85
85
}
You can’t perform that action at this time.
0 commit comments