[PC-BSD Commits] r1546 - pbibuild/pbi-source/PBIsource
svn at pcbsd.org
svn at pcbsd.org
Wed Mar 5 13:09:26 PST 2008
Author: kris
Date: 2008-03-05 13:09:25 -0800 (Wed, 05 Mar 2008)
New Revision: 1546
Modified:
pbibuild/pbi-source/PBIsource/pbi.ui.h
Log:
Fixed bug causing an existing PBI to be removed if the user cancels a 2nd install
Modified: pbibuild/pbi-source/PBIsource/pbi.ui.h
===================================================================
--- pbibuild/pbi-source/PBIsource/pbi.ui.h 2008-03-05 19:56:58 UTC (rev 1545)
+++ pbibuild/pbi-source/PBIsource/pbi.ui.h 2008-03-05 21:09:25 UTC (rev 1546)
@@ -1865,20 +1865,21 @@
if ( ExtractStarted == 1)
{
UnTar->kill();
- }
- if ( ! ProgDirName.isEmpty() && ProgDirName != " ")
- {
+ if ( ! ProgDirName.isEmpty() && ProgDirName != " ")
+ {
Chmod = new QProcess( this );
- Chmod->addArgument( "rm" );
- Chmod->addArgument( "-rf" );
- Chmod->addArgument( "/Programs/" + ProgDirName );
+ Chmod->addArgument( "pbidelete" );
+ Chmod->addArgument( "-remove" );
+ Chmod->addArgument( ProgDirName );
if ( !Chmod->start() ) {
-
+
}
- }
+ }
+ }
+
}
More information about the Commits
mailing list