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

Commit

Permalink
Fix a bug with SWAP getting listed as the first partition when option…
Browse files Browse the repository at this point in the history
…s are set on /
  • Loading branch information
Kris Moore committed Nov 14, 2013
1 parent 901829d commit 029a2ba
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src-qt4/pc-installgui/installer.cpp
Expand Up @@ -395,8 +395,7 @@ QStringList Installer::getDiskSummary()
for (int z = 0; z < mounts.size(); ++z) {
if ( copyList.at(i).at(0) == workingDisk \
&& copyList.at(i).at(1) == workingSlice \
&& (mounts.at(z) == startPart || mounts.at(z).contains(startPart + "(") ) ) {

&& (mounts.at(z) == startPart || mounts.at(z).indexOf(startPart + "(") == 0 ) ) {
// Check if we have any extra arguments to throw on the end
XtraTmp="";
if ( ! copyList.at(i).at(5).isEmpty() )
Expand All @@ -412,7 +411,7 @@ QStringList Installer::getDiskSummary()
QString zTMP;
for (int ds = 0; ds < zDS.size(); ++ds) {
//if ( zDS.at(ds) != "/" )
// zDS.replace(ds, "/" + zDS.at(ds));
// zDS.replace(ds, "/" + zDS.at(ds));
if ( zDS.at(ds).indexOf("(") != -1 ) {
zTMP = zDS.at(ds);
zTMP.replace("(", " (");
Expand Down Expand Up @@ -589,7 +588,7 @@ void Installer::slotChangedMetaPkgSelection()
QTextStream in(&file);
while (!in.atEnd()) {
QString line = in.readLine();
if ( line.indexOf('LoadModule: "nvidia"') != -1 ) {
if ( line.indexOf("NVIDIA") != -1 ) {
selectedPkgs << "NVIDIA";
break;
}
Expand Down Expand Up @@ -1136,7 +1135,7 @@ QStringList Installer::getDiskCfgSettings()
for (int z = 0; z < mounts.size(); ++z) {
if ( copyList.at(i).at(0) == workingDisk \
&& copyList.at(i).at(1) == workingSlice \
&& mounts.at(z) == startPart ) {
&& ( mounts.at(z) == startPart || mounts.at(z).indexOf(startPart + "(") == 0 ) ) {

// Check if we have any extra arguments to throw on the end
XtraTmp="";
Expand Down

0 comments on commit 029a2ba

Please sign in to comment.