Changeset 7369d56


Ignore:
Timestamp:
08/06/13 10:29:44 (15 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
940aaf0, 4f9718b
Parents:
6edfd8a
Message:

Couple small bugfixes for EasyPBI: make sure that the entire package cache is not cleared before starting a build unless explicitly specified, clear the build log each time it starts compiling a new port (to try and prevent clogging up the system memory)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/EasyPBI/mainGUI.cpp

    r71f823e r7369d56  
    13741374      QDir cDir( settings->value("cachedir") ); 
    13751375      QStringList filters = settings->list("skippkgs"); 
    1376       QStringList badFiles = cDir.entryList(filters, QDir::Files | QDir:: NoDotAndDotDot); 
    1377       for(int i=0; i<badFiles.length(); i++){ cDir.remove(badFiles[i]); } 
     1376      if(!filters.isEmpty()){ 
     1377        QStringList badFiles = cDir.entryList(filters, QDir::Files | QDir:: NoDotAndDotDot); 
     1378        for(int i=0; i<badFiles.length(); i++){ cDir.remove(badFiles[i]); } 
     1379      } 
    13781380    } 
    13791381    if( settings->check("usesignature") && QFile::exists(settings->value("sigfile")) ){ cmd += " --sign " + settings->value("sigfile"); } 
     
    14181420  ui->push_build_start->setEnabled(FALSE); //disable the button so they do not start more than 1 build at a time 
    14191421  ui->text_build_log->clear(); //clear the display in case this is not the first run 
    1420   ui->line_build_module->setText(currentModule->path()); 
     1422  ui->line_build_module->setText( currentModule->path().replace(QDir::homePath(), "~") ); 
    14211423  ui->line_build_outputdir->setText(settings->value("pbidir")); 
    14221424  //Setup Process connections 
     
    14581460  if( tmp.startsWith("\n") ){tmp.remove(0,0);} //remove newline at the beginning (too much whitespace in log) 
    14591461  if( tmp.endsWith("\n") ){tmp.chop(1);} //remove newline at the end (already accounted for by appending) 
     1462  //clear the display  if it is starting a new port compilation (prevent the log getting too large) 
     1463  if(tmp.toLower().startsWith("compiling port: ")){ ui->text_build_log->clear(); } 
    14601464  if(!tmp.isEmpty()){ ui->text_build_log->append( tmp ); } 
    14611465  //qDebug() << "Update output: " << tmp; 
Note: See TracChangeset for help on using the changeset viewer.