Changeset 3b1bb35


Ignore:
Timestamp:
12/17/13 00:25:49 (12 months ago)
Author:
yurkis <yurkis@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
297f619
Parents:
ebba654
Message:

More error handling for package update check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-updatecenter/pkgcontroller.cpp

    rd17b2ea r3b1bb35  
    5555 
    5656__string_constant PKG_NETWORK_ERROR = ": No address record"; 
    57  
     57__string_constant PKG_COMMON_ERROR = "ERROR: Error"; 
    5858typedef struct 
    5959{ 
     
    149149    if (eCommonInfo == curChkrState) 
    150150    { 
     151        //qDebug()<<line; 
    151152        if (line.contains(PKG_NETWORK_ERROR)) 
    152153        { 
    153154            reportError(tr("Error during update check. Check network connection")); 
     155            return; 
     156        } 
     157        if (line.indexOf(PKG_COMMON_ERROR) == 0) 
     158        { 
     159            line = line.replace(PKG_COMMON_ERROR,""); 
     160            reportError(tr("Error checking updates. Error code: %1").arg(line.left(line.indexOf(":")))); 
     161            return; 
    154162        } 
    155163        if ( line.contains(FULLY_UPDATED_MESSAGE)) 
     
    281289{ 
    282290    static QString last_message; 
    283     qDebug()<<line; 
     291    //qDebug()<<line; 
    284292    line= line.trimmed(); 
    285293 
Note: See TracChangeset for help on using the changeset viewer.