[yast/yast-yast2] 4ee54c: Allow dir:///foo to equal dir:/foo (bsc#1207239)
Branch: refs/heads/ruby32-uri Home: https://github.com/yast/yast-yast2 Commit: 4ee54c1fb4f24435a2662353832f61b4a4c5dcb8 https://github.com/yast/yast-yast2/commit/4ee54c1fb4f24435a2662353832f61b4a4... 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: d6d079ec9aa232113dd48441fdb1faecb3169538 https://github.com/yast/yast-yast2/commit/d6d079ec9aa232113dd48441fdb1faecb3... 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/02b7535937c7...d6d079ec9aa2
participants (1)
-
Martin Vidner