Permalink
Browse files

When building reverse dep list, use "pkg query" instead of "pkg rquer…

…y", which is faster and less prone to failure
  • Loading branch information...
1 parent e3174a0 commit 1fe652fe8a67415901490647b0c9e7af7b1f52ca @kmoore134 kmoore134 committed Feb 5, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 src-qt4/pc-pkgmanager/mainWin.cpp
@@ -897,9 +897,9 @@ void mainWin::applyNGChanges()
pkgRDepList.clear();
QProcess p;
if ( wDir.isEmpty() )
- p.start("pkg", QStringList() << "rquery" << "%n-%v:::%rn-%rv" << rmPkgs.at(i));
+ p.start("pkg", QStringList() << "query" << "%n-%v:::%rn-%rv" << rmPkgs.at(i));
else
- p.start("chroot", QStringList() << wDir << "pkg" << "rquery" << "%n-%v:::%rn-%rv" << rmPkgs.at(i) );
+ p.start("chroot", QStringList() << wDir << "pkg" << "query" << "%n-%v:::%rn-%rv" << rmPkgs.at(i) );
while(p.state() == QProcess::Starting || p.state() == QProcess::Running) {
p.waitForFinished(200);
QCoreApplication::processEvents();
@@ -915,7 +915,7 @@ void mainWin::applyNGChanges()
QString pName = rDeps.at(r).section(":::", 1, 1);
// Is this package installed?
if ( pkgList.indexOf(pName) != -1 )
- confirmText+= pName + " ";
+ confirmText+= pName + "\n";
}
}
}

0 comments on commit 1fe652f

Please sign in to comment.