Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Fix installing src / ports if chosen
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Moore committed Mar 19, 2014
1 parent 5a917f1 commit f758657
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
26 changes: 6 additions & 20 deletions src-qt4/pc-installgui/installer.cpp
Expand Up @@ -876,6 +876,12 @@ QStringList Installer::getGlobalCfgSettings()
if ( Arch == "amd64" )
distFiles+=" lib32";

// Check for ports / src sources
if ( fSRC )
distFiles+=" src";
if ( fPORTS )
distFiles+=" ports";

// System type we are installing
if ( radioDesktop->isChecked() )
tmpList << "installType=PCBSD";
Expand Down Expand Up @@ -996,8 +1002,6 @@ void Installer::startConfigGen()
// We can skip these options if doing a restore
if ( ! radioRestore->isChecked() ) {

cfgList+=getComponentCfgSettings();

// Save the install config script to disk
cfgList << "runExtCommand=/root/save-config.sh";

Expand Down Expand Up @@ -1565,24 +1569,6 @@ void Installer::slotReadInstallerOutput()
} // end of while loop
}

// Return list of components to install
QStringList Installer::getComponentCfgSettings()
{
QStringList componentList, com;
if ( fSRC )
com << "src";
if ( fPORTS )
com << "ports";

if ( ! com.isEmpty() ) {
componentList << "";
componentList << "# Optional Components";
componentList << "installComponents=" + com.join(",");
}

return componentList;
}

// Start xvkbd
void Installer::slotPushVirtKeyboard()
{
Expand Down
1 change: 0 additions & 1 deletion src-qt4/pc-installgui/installer.h
Expand Up @@ -98,7 +98,6 @@ private slots:
// Functions which return parts of the config file
QStringList getGlobalCfgSettings();
QStringList getDiskCfgSettings();
QStringList getComponentCfgSettings();

void startConfigGen(); // Function which takes pieces of cfg, and assembles
void checkSpaceWarning(); // Function to check space of disk drive
Expand Down

0 comments on commit f758657

Please sign in to comment.