[yast/yast-yast2] 3b7031: Allow dir:///foo to equal dir:/foo (bsc#1207239)
Branch: refs/heads/ruby32-uri Home: https://github.com/yast/yast-yast2 Commit: 3b703197c5b0f2108d28115200fa6030938522b7 https://github.com/yast/yast-yast2/commit/3b703197c5b0f2108d28115200fa603093... 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: 9cb1f7761d1541742d9f9ef71c5841babc185c0f https://github.com/yast/yast-yast2/commit/9cb1f7761d1541742d9f9ef71c5841babc... 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/d6d079ec9aa2...9cb1f7761d15
participants (1)
-
Martin Vidner