[Bug 1173509] New: $releasever in repo URL creates weird zypp repo name
https://bugzilla.suse.com/show_bug.cgi?id=1173509 Bug ID: 1173509 Summary: $releasever in repo URL creates weird zypp repo name Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 Assignee: yast2-maintainers@suse.de Reporter: snwint@suse.com QA Contact: jsrain@suse.com Found By: --- Blocker: --- Created attachment 839201 --> https://bugzilla.suse.com/attachment.cgi?id=839201&action=edit yast logs - normal URL Using $releasever in the installation repo URL avoids the duplicate main repo but the main repo gets an unusual name like http-download.opensuse.org-da2f0184. See attached yast logs and the output of 'zypper lr -uE'. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1173509
https://bugzilla.suse.com/show_bug.cgi?id=1173509#c1
--- Comment #1 from Steffen Winterfeldt
https://bugzilla.suse.com/show_bug.cgi?id=1173509
https://bugzilla.suse.com/show_bug.cgi?id=1173509#c2
--- Comment #2 from Steffen Winterfeldt
https://bugzilla.suse.com/show_bug.cgi?id=1173509
https://bugzilla.suse.com/show_bug.cgi?id=1173509#c3
--- Comment #3 from Steffen Winterfeldt
https://bugzilla.suse.com/show_bug.cgi?id=1173509
https://bugzilla.suse.com/show_bug.cgi?id=1173509#c4
--- Comment #4 from Steffen Winterfeldt
https://bugzilla.suse.com/show_bug.cgi?id=1173509
https://bugzilla.suse.com/show_bug.cgi?id=1173509#c5
--- Comment #5 from Steffen Winterfeldt
https://bugzilla.suse.com/show_bug.cgi?id=1173509
Steffen Winterfeldt
https://bugzilla.suse.com/show_bug.cgi?id=1173509
https://bugzilla.suse.com/show_bug.cgi?id=1173509#c6
Michael Andres
Using $releasever in the installation repo URL avoids the duplicate main repo but the main repo gets an unusual name like http-download.opensuse.org-da2f0184.
I guess this is something for YAST (yast-pkg-bindings). Looks like they don't handle rawURLs (those which need repo vars replacement) correctly in all places. Commonly this is hidden inside a zypp::RepoInfo class. It expects rawURLs to be passed in and always hands out replaced URLs. To get the raw URLs out again, you must explicitly request it. Form the log it appears to me, that the Ruby code passes the rawUrl down to yast-pkg-bindings:
[Ruby] modules/InstURL.rb:152 Using install URL: http://download.opensuse.org/distribution/leap/$releasever/repo/oss/
Sometimes, like in
[Pkg] Source_Create.cc(ScanProductsWithCallBacks):61 Scanning products in http://download.opensuse.org/distribution/leap/15.2/repo/oss/ yast-pkg-bindings use a var-expanded URL.
But in other locations they seem to use the rawURL directly and pass it down to libzypp for downloading, probing and parsing. Those zypp functions expect valid URLs and you see them failing as an unexpanded URL is passed down to the zypp Mediabackend:
[Pkg] Source_Create.cc(ScanProductsWithCallBacks):61 Scanning products in http://download.opensuse.org/distribution/leap/$releasever/rep... or [Pkg] Source_Create.cc(createManagedSource):199 Probing source type: 'http://download.opensuse.org/distribution/leap/$releasever/repo/os...
Regarding the -da2f0184: AFAICS yast-pkg-bindings Source_Create.cc(createManagedSource) expects a repo alias to be passed (as arg or in the URL). If none is present, a 'stupid' alias is created. I guess the errors due to using unexpanded URLs leads to no alias being detected and passed to createManagedSource. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1173509
https://bugzilla.suse.com/show_bug.cgi?id=1173509#c7
Steffen Winterfeldt
https://bugzilla.suse.com/show_bug.cgi?id=1173509
Arvin Schnell
https://bugzilla.suse.com/show_bug.cgi?id=1173509
https://bugzilla.suse.com/show_bug.cgi?id=1173509#c8
Arvin Schnell
https://bugzilla.suse.com/show_bug.cgi?id=1173509
https://bugzilla.suse.com/show_bug.cgi?id=1173509#c12
--- Comment #12 from Swamp Workflow Management
https://bugzilla.suse.com/show_bug.cgi?id=1173509
https://bugzilla.suse.com/show_bug.cgi?id=1173509#c13
--- Comment #13 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@suse.com