Mailinglist Archive: zypp-devel (114 mails)
| < Previous | Next > |
[zypp-devel] media change callback problems
- From: Jan Kupec <jkupec@xxxxxxx>
- Date: Mon, 30 Jul 2007 15:25:00 +0200
- Message-id: <46ADE6AC.40203@xxxxxxx>
Hi,
i think we have two problems with media
MediaChangeReport::requestMedia() callback:
1) the callback mixes request for another media from media set (where
the media are physically changeable CD/DVD) and request for another
URL
2) with the refactored libzypp we have no means to change the URL as we
did before. The URL edit box has no effect now in YaST dialogs due to
this fact. (zypper didn't have this implemented so far.)
This is again because we don't have repositories globally associated
with media access, and there is nothing like simple
redirect(media, newurl) call now.
I guess 1) can be solved easily by splitting the requestMedia() into
e.g. requestMediaFromSet() and problem(), where requestMediaFromSet()
would be called only for changeable media (after a guess whether the
error can be caused by wrong media number) and problem() would be called
for all media types on real error (where requestMediaFromSet() did not
help).
This way the UI can display more appropriate message like "Please,
insert media labeled 'openSUSE 10.3' #2 into the drive..." for
requestMediaFromSet() and "An error occured: ...." for problem().
But for 2) i don't know. Ideas?
BTW: I've made a change to the callback so that it is called for
CDs/DVDs only, but thanx to Michael i've realized the problem is a
little bit more complex. Should i revert that change for now? It should
be reverted at least if we decide not to solve the above problems for now.
Cheers,
Jano
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
i think we have two problems with media
MediaChangeReport::requestMedia() callback:
1) the callback mixes request for another media from media set (where
the media are physically changeable CD/DVD) and request for another
URL
2) with the refactored libzypp we have no means to change the URL as we
did before. The URL edit box has no effect now in YaST dialogs due to
this fact. (zypper didn't have this implemented so far.)
This is again because we don't have repositories globally associated
with media access, and there is nothing like simple
redirect(media, newurl) call now.
I guess 1) can be solved easily by splitting the requestMedia() into
e.g. requestMediaFromSet() and problem(), where requestMediaFromSet()
would be called only for changeable media (after a guess whether the
error can be caused by wrong media number) and problem() would be called
for all media types on real error (where requestMediaFromSet() did not
help).
This way the UI can display more appropriate message like "Please,
insert media labeled 'openSUSE 10.3' #2 into the drive..." for
requestMediaFromSet() and "An error occured: ...." for problem().
But for 2) i don't know. Ideas?
BTW: I've made a change to the callback so that it is called for
CDs/DVDs only, but thanx to Michael i've realized the problem is a
little bit more complex. Should i revert that change for now? It should
be reverted at least if we decide not to solve the above problems for now.
Cheers,
Jano
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |