SDK Updater: Better guess for the addon folder name.

- Always unzip the archives first and get their root zip dir.
- Try to reusing an existing addon folder first.
- Or the root zip dir.
- Or come up with a better name for the addon folder.
This commit is contained in:
Raphael
2009-06-17 20:02:56 -07:00
parent bed900d8da
commit 691beb35a1
9 changed files with 149 additions and 77 deletions

View File

@@ -101,7 +101,8 @@ class LocalSdkAdapter {
if (packages == null) {
// load on demand the first time
packages = parser.parseSdk(mUpdaterData.getOsSdkRoot());
packages = parser.parseSdk(mUpdaterData.getOsSdkRoot(),
mUpdaterData.getSdkManager());
}
if (packages != null) {

View File

@@ -273,7 +273,7 @@ class UpdaterData {
break;
}
if (archive.install(mOsSdkRoot, forceHttp, monitor)) {
if (archive.install(mOsSdkRoot, forceHttp, mSdkManager, monitor)) {
numInstalled++;
}