File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ def prepare_static_build_linux(self):
285285 url = latest_libxml2_release ()
286286 self .info ('{:10}: {}' .format ('libxml2' , 'PYXMLSEC_LIBXML2_VERSION unset, downloading latest from {}' .format (url )))
287287 else :
288- version_prefix , _ = self .libxml2_version .split ('.' , - 1 )
288+ version_prefix , _ = self .libxml2_version .rsplit ('.' , 1 )
289289 url = 'https://download.gnome.org/sources/libxml2/{}/libxml2-{}.tar.xz' .format (
290290 version_prefix , self .libxml2_version
291291 )
@@ -305,7 +305,7 @@ def prepare_static_build_linux(self):
305305 url = latest_libxslt_release ()
306306 self .info ('{:10}: {}' .format ('libxslt' , 'PYXMLSEC_LIBXSLT_VERSION unset, downloading latest from {}' .format (url )))
307307 else :
308- version_prefix , _ = self .libxslt_version .split ('.' , - 1 )
308+ version_prefix , _ = self .libxslt_version .rsplit ('.' , 1 )
309309 url = 'https://download.gnome.org/sources/libxslt/{}/libxslt-{}.tar.xz' .format (
310310 version_prefix , self .libxslt_version
311311 )
You can’t perform that action at this time.
0 commit comments