[yast/yast-yast2] 5e7c8a: Allow dir:///foo to equal dir:/foo (bsc#1207239)
Branch: refs/heads/ruby32-uri Home: https://github.com/yast/yast-yast2 Commit: 5e7c8a11e9ffa90b95dde33477c813e0efb96aed https://github.com/yast/yast-yast2/commit/5e7c8a11e9ffa90b95dde33477c813e0ef... Author: Martin Vidner <mvidner@suse.cz> Date: 2023-01-27 (Fri, 27 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? Also remove a superfluous brace} from #inspect: #<Y2Packager::ZyppUrl:2220} @uri=#<URI::Generic dir:/foo>> Commit: 02b7535937c7c8ed3d1ba8ab7c09029c57287375 https://github.com/yast/yast-yast2/commit/02b7535937c7c8ed3d1ba8ab7c09029c57... Author: Martin Vidner <mvidner@suse.cz> Date: 2023-01-27 (Fri, 27 Jan 2023) Changed paths: M package/yast2.changes M package/yast2.spec Log Message: ----------- version + changelog Compare: https://github.com/yast/yast-yast2/compare/cfd2f0af0704...02b7535937c7
participants (1)
-
Martin Vidner