Branch: refs/heads/ruby32-uri
Home: https://github.com/yast/yast-yast2
Commit: 1f401e4f129d365e1a3c9c1ece2e499a4a9f02e5
https://github.com/yast/yast-yast2/commit/1f401e4f129d365e1a3c9c1ece2e499a4a...
Author: Martin Vidner
Date: 2023-01-26 (Thu, 26 Jan 2023)
Changed paths:
M library/packages/src/lib/y2packager/zypp_url.rb
A library/packages/test/y2packager/zypp_url_test.rb
Log Message:
-----------
Allow dir:///foo to equal dir:/foo (bsc#1207239)
Since Ruby 3.2,
URI("dir:///foo").to_s no longer returns "dir:/foo"
but if we route the 3-slash form via C++ zypp::Url, it gets normalized
to a single slash, see also
https://github.com/openSUSE/libzypp/issues/441
So in the class that wraps zypp::Url, consider those equal
It fixes a comparison in PkgFinishClient#added_by_installer?