[PC-BSD Commits] r6164 - pcbsd/trunk/PBIdelete
svn at pcbsd.org
svn at pcbsd.org
Wed Feb 3 06:57:09 PST 2010
Author: kris
Date: 2010-02-03 06:57:09 -0800 (Wed, 03 Feb 2010)
New Revision: 6164
Modified:
pcbsd/trunk/PBIdelete/main.cpp
Log:
Updated pbidelete, able to also uninstall 7.x PBIs on 8.x
Modified: pcbsd/trunk/PBIdelete/main.cpp
===================================================================
--- pcbsd/trunk/PBIdelete/main.cpp 2010-02-03 14:18:37 UTC (rev 6163)
+++ pcbsd/trunk/PBIdelete/main.cpp 2010-02-03 14:57:09 UTC (rev 6164)
@@ -118,7 +118,23 @@
return;
}
+ // Check for legacy 7.x PBIs to remove
+ tmp = ProgName[i];
+ tmp.replace(" ", "");
+ ProgDirName = tmp;
+ tmp = ProgVer[i];
+ tmp.replace(" ", "");
+ ProgDirName = ProgDirName + tmp;
+ if ( RemovePBI == ProgDirName )
+ {
+ cout << "Removing " << RemovePBI.toStdString() << "\n";
+ RemNum = i;
+ CheckScriptSlot();
+ cout << RemovePBI.toStdString() << " was removed successfully!\n";
+ return;
+ }
+
i++;
}
More information about the Commits
mailing list