Changeset 418f827


Ignore:
Timestamp:
Oct 9, 2013 10:17:47 AM (9 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
229e193
Parents:
0d4cf8f
Message:

When listing package updates, also show ones which are being re-installed
and the reason why

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-pkgmanager/mainWin.cpp

    r1cad412 r418f827  
    229229    line = p.readLine().simplified(); 
    230230    qDebug() << line; 
    231     if ( line.indexOf("Upgrading") != 0) { 
    232        continue; 
     231    if ( line.indexOf("Upgrading") == 0 ) { 
     232      tmp = line; 
     233      pkgname = tmp.section(" ", 1, 1); 
     234      pkgname.replace(":", ""); 
     235      pkgover = tmp.section(" ", 2, 2); 
     236      pkgnver = tmp.section(" ", 4, 4); 
     237      QTreeWidgetItem *myItem = new QTreeWidgetItem(QStringList() << pkgname << pkgover << pkgnver); 
     238      listViewUpdatesPkgs->addTopLevelItem(myItem); 
     239      haveUpdates = true; 
     240      totPkgs++; 
     241    } // End of upgrading section 
     242    if ( line.indexOf("Reinstalling") == 0 ) { 
     243      tmp = line; 
     244      pkgname = tmp.section(" ", 1, 1); 
     245      pkgover = pkgname.section("-", -1); 
     246      pkgname.truncate(pkgname.lastIndexOf("-")); 
     247      pkgnver = tmp.section(" ", 2); 
     248      QTreeWidgetItem *myItem = new QTreeWidgetItem(QStringList() << pkgname << pkgover << pkgnver); 
     249      listViewUpdatesPkgs->addTopLevelItem(myItem); 
     250      haveUpdates = true; 
     251      totPkgs++; 
    233252    } 
    234     tmp = line; 
    235     pkgname = tmp.section(" ", 1, 1); 
    236     pkgname.replace(":", ""); 
    237     pkgover = tmp.section(" ", 2, 2); 
    238     pkgnver = tmp.section(" ", 4, 4); 
    239     QTreeWidgetItem *myItem = new QTreeWidgetItem(QStringList() << pkgname << pkgover << pkgnver); 
    240     listViewUpdatesPkgs->addTopLevelItem(myItem); 
    241     haveUpdates = true; 
    242     totPkgs++; 
    243253  } 
    244254 
Note: See TracChangeset for help on using the changeset viewer.