Bug 116213

Summary: Yast Feature
Product: [openSUSE] SUSE Linux 10.1 Reporter: Carsten Michels <tux>
Component: YaST2Assignee: Jiri Srain <jsrain>
Status: RESOLVED WORKSFORME QA Contact: Klaus Kämpf <kkaempf>
Severity: Enhancement    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Carsten Michels 2005-09-09 18:04:00 UTC
In Yast a Retry Butten would be completely helpful when installing new  
software. If the servers or the connection precipitates remains the procedure 
mostly hanging. If those InterNet connection or the server is overloaded 
remains the procedure hanging. 
  
A "Retry"Button or a AutoRetry function would be perhaps very good.  
  
Apology for my bad Englich I used Google Translate:)
Comment 1 Michael Gross 2005-09-12 09:56:42 UTC
For the assignee:

When downloading packages via a remote connection, YaST offers no way to resume
the download once it has failed (i.e. due to a broken connection). Would be
handy if there was some retry-button.
Comment 2 Michael Andres 2005-09-12 14:02:53 UTC
Jiri?  
If the DoneProvide callback returned RETRY, the packagemanager should already
honour it. So it's probabely just the button missing.
Comment 3 Jiri Srain 2005-09-27 07:40:50 UTC
There is a "Retry" button, according to the sources. Just the callbacks 
doesn't return 'RETRY', but only 'R' (and similar for abort button). What are 
the right return codes of this callback? 
Comment 4 Michael Andres 2005-09-27 09:24:16 UTC
There's little chance to miss it ;)
"r"     -> RETRY
"re"    -> RETRY
"ret"   -> RETRY
"retr"  -> RETRY
"retry" -> RETRY
"R"     -> RETRY
"RE"    -> RETRY
"RET"   -> RETRY
"RETR"  -> RETRY
"RETRY" -> RETRY

The same for:
    case CBSuggest::PROCEED:              // return original error
    case CBSuggest::SKIP:                 // skip current media
    case CBSuggest::CANCEL:               // cancel all
    case CBSuggest::RETRY:                // retry !

Any abreviation of the enum name will do.
Comment 5 Michael Andres 2005-09-27 09:46:06 UTC
NB: PROCEED:"return original error" includes 'no error' as well. Proceed means
'do what seems to be appropriate'. You'll get the same behaviour, as if there is
no Callback listening at all. If you'd return an unknown or empty string, it
will mean PROCEED. Thus it's safe for you to return "" if ther's no advice , and
otherwise 'SKIP|CANCEL|RETRY'.

Comment 6 Jiri Srain 2005-10-04 09:23:07 UTC
Hmm, looking into the sources, the DoneProvide callback (provided the error is 
not 0) always ask what to do. 
 
I also tested it, if downloading package failed, user is asked, one of 
possibilities is RETRY. So, marking as WORKSFORME.