|
Bugzilla – Full Text Bug Listing |
| Summary: | Not possible to redirect a repository, empty URL reported | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 10.3 | Reporter: | Ladislav Slezák <lslezak> |
| Component: | libzypp | Assignee: | Ladislav Slezák <lslezak> |
| Status: | RESOLVED FIXED | QA Contact: | Klaus Kämpf <kkaempf> |
| Severity: | Major | ||
| Priority: | P5 - None | CC: | locilka, ma |
| Version: | Alpha 6 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
I have to investigate. *** Bug 293102 has been marked as a duplicate of this bug. *** Jano, I remember you changed something about meda change, had something to do with this? Yes, all is explained in this mail: http://lists.opensuse.org/zypp-devel/2007-07/msg00099.html Lada we also discussed and found a solution. Do you remember what it was? :O) See http://lists.opensuse.org/zypp-devel/2007-07/msg00100.html Pkg-bindings should change the passed URL and return CHANGE_URL value. The problem with too many popup dialogs won't occur, pkg-bindings should remember the old and the new URL and do automatic redirection if the requested URL has already been redirected. done in libzypp svn r7033, zypper is also adapted. Lado, please do the pkg-bindings part. yast2-pkg-bindings-2.15.47 contain just compile fix, I'll implement the redirection in the next version. Fully implemented in yast2-pkg-bindings-2.15.49 |
Media change callback (zypp::media::MediaChangeReport::requestMedia()) currently doesn't allow repository redirection. Yast cannot pass the new URL back to libzypp and even more libzypp handles "change" action as "retry": MediaSetAccess.cc: else if (user == media::MediaChangeReport::RETRY || user == media::MediaChangeReport::CHANGE_URL) (In the old API yast used source.redirect(medium_nr, new_url) call to redirect the source.) Another problem is that the passed Repository object is NoRepository (i.e. yast displays empty URL in the popup dialog).