[PC-BSD Commits] r20796 - users/ken/EasyPBI2
svn at pcbsd.org
svn at pcbsd.org
Fri Dec 28 10:20:29 PST 2012
Author: kenmoore
Date: 2012-12-28 18:20:29 +0000 (Fri, 28 Dec 2012)
New Revision: 20796
Modified:
users/ken/EasyPBI2/portsDialog.cpp
Log:
Ok, now the portsnap stuff for EasyPBI is done, just fixed the last bug and added some more debugging info.
Modified: users/ken/EasyPBI2/portsDialog.cpp
===================================================================
--- users/ken/EasyPBI2/portsDialog.cpp 2012-12-28 18:12:36 UTC (rev 20795)
+++ users/ken/EasyPBI2/portsDialog.cpp 2012-12-28 18:20:29 UTC (rev 20796)
@@ -125,11 +125,11 @@
//If using portsnap, make sure the intermediate file is there in the EasyPBI directory
if( usePortsnap ){
QString pspath = localPortsTree;
- pspath.chop( pspath.length() - pspath.lastIndexOf("/") );
+ pspath.chop( pspath.length() - pspath.lastIndexOf("/") ); //remove the ports dir from the path to get the base path
pspath.append(".portsnapNI.sh");
if( !QFile::exists(pspath) ){
- QString pscmd ="echo \"#!/bin/sh \ncat /usr/sbin/portsnap | sed 's|! -t 0|-z '1'|g' | /bin/sh -s \\$@\" > "+pspath+"; chmod 755 "+pspath;
- qDebug() << "system call:" << pscmd;
+ QString pscmd ="echo \"#!/bin/sh \n#Non-Interactive portsnap workaround for EasyPBI \ncat /usr/sbin/portsnap | sed 's|! -t 0|-z '1'|g' | /bin/sh -s \\$@\" > "+pspath+"; chmod 755 "+pspath;
+ //qDebug() << "system call:" << pscmd;
system(pscmd.toUtf8());
}
cmd.replace("portsnap",pspath);
More information about the Commits
mailing list