Changeset 273a090


Ignore:
Timestamp:
12/03/13 11:03:54 (8 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
d29f2cb
Parents:
a7474ab
Message:

Fix up the AppCafe? to use the PBI approval date for getting recent applications rather than the old PBI build date (since there could be a significant delay between build/approval sometimes).

Location:
src-qt4/pc-softwaremanager
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-softwaremanager/pbiBackend.cpp

    rd9f2085 r273a090  
    133133  QDate date = QDate::currentDate(); 
    134134  date = date.addDays(-10); 
    135   QString chk = date.toString(Qt::ISODate); 
    136   chk.remove("-"); chk.append(" 000000"); //don't specify a particular time 
     135  QString chk = date.toString("yyyyMMdd"); 
    137136  //Now compare the latest apps to this date 
    138137  QStringList apps = APPHASH.keys(); 
  • src-qt4/pc-softwaremanager/pbiDBAccess.cpp

    r0ffa8c4 r273a090  
    189189 
    190190QStringList PBIDBAccess::parseIndexLine(QString line){ 
    191   //output[name, arch, version, datetime, sizeK, isLatest(bool), filename] 
    192   //line format 5/1/2013: [name,arch,version,checksum,datetime,mirrorPathToPBI,?,?,current/active,sizeInK,?] 
     191  //output[name, arch, version, date, sizeK, isLatest(bool), filename] 
     192  //line format 12/3/2013: [name,arch,version,checksum,datetimeBuilt,mirrorPathToPBI,datetimeApproved,?,current/active,sizeInK,?] 
    193193      // NOTE: last two entries missing quite often 
    194194  QStringList lineInfo = line.split(":"); 
     
    198198  output << lineInfo[1]; //architecture 
    199199  output << lineInfo[2]; //version 
    200   output << lineInfo[4]; //datetime 
     200  QDateTime DT; 
     201  DT.setTime_t(lineInfo[6].toInt()); 
     202  output << DT.toString("yyyyMMdd"); //date added to AppCafe 
    201203  if(lineInfo.length() >= 10){ output << lineInfo[9]; }//Size in KB 
    202204  else{ output << ""; } 
  • src-qt4/pc-softwaremanager/pbiDBAccess.h

    r78fa8b2 r273a090  
    1111#include <QProcess> 
    1212#include <QProcessEnvironment> 
     13#include <QDateTime> 
    1314 
    1415#include "extras.h" 
Note: See TracChangeset for help on using the changeset viewer.