[PC-BSD Commits] r3750 - pbibuild/pbi-source/PBIsource
svn at pcbsd.org
svn at pcbsd.org
Fri Apr 3 06:35:08 PST 2009
Author: kris
Date: 2009-04-03 07:35:08 -0700 (Fri, 03 Apr 2009)
New Revision: 3750
Modified:
pbibuild/pbi-source/PBIsource/pbi.cpp
Log:
Fixed a bug with a circular link in the PBI installation routine
Modified: pbibuild/pbi-source/PBIsource/pbi.cpp
===================================================================
--- pbibuild/pbi-source/PBIsource/pbi.cpp 2009-04-02 21:10:27 UTC (rev 3749)
+++ pbibuild/pbi-source/PBIsource/pbi.cpp 2009-04-03 14:35:08 UTC (rev 3750)
@@ -1404,8 +1404,11 @@
//NewDir.mkpath("/Programs/" + ProgDirName);
- NewDir.mkpath(InstallDirPath);
- system("ln -s '" + InstallDirPath + "' " + "/Programs/" + ProgDirName);
+ QString RegularPath = "/Programs/" + ProgDirName;
+ if ( InstallDirPath != RegularPath )
+ {
+ system("ln -s '" + InstallDirPath + "' " + "/Programs/" + ProgDirName);
+ }
// If we have update URL, create the file here
if ( ! ProgUpdateURL.isEmpty() )
More information about the Commits
mailing list