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

Commit

Permalink
System Manager Update
Browse files Browse the repository at this point in the history
Change how we fetch system sources on 10, now use GIT to clone our
PC-BSD / FreeBSD repo
  • Loading branch information
Kris Moore committed Nov 15, 2013
1 parent 2ec77c7 commit 82f1819
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src-qt4/pc-sysmanager/portsnapprogress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,17 @@ void PortsnapProgress::startSource(QString pcVer)
QString branch;
// Figure out which to download
if ( pcVer.indexOf("STABLE") )
branch = "/stable/" + pcVer.section(".", 0, 0);
branch = "stable/" + pcVer.section("-", 0, 0).section(".", 0, 0);
else if ( pcVer.indexOf(".") != -1 )
branch = "/releng/" + pcVer.section("-", 0, 0);
branch = "releng/" + pcVer.section("-", 0, 0);
else
branch = "/head";
branch = "master";

QStringList args;
QString prog;
prog = "svn";
args << "co" << "svn://svn.freebsd.org/base" + branch << "/usr/src";
prog = "git";
args << "clone" << "https://github.com/pcbsd/freebsd.git" << "-b" << branch << "/usr/src";
qDebug() << args;
portsnap = new QProcess(this);
portsnap->setProcessChannelMode(QProcess::MergedChannels);
connect(portsnap, SIGNAL(readyReadStandardOutput()), this, SLOT(parseUpdate()));
Expand Down

0 comments on commit 82f1819

Please sign in to comment.