SDK Updater: fix install in new directory.
Also change the getenv hack so that multiple sources can be specified, separated by ;
This commit is contained in:
@@ -586,13 +586,13 @@ public class Archive implements IDescription {
|
||||
destFolder.getPath());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (!unzipDestFolder.mkdirs()) {
|
||||
monitor.setResult("Failed to create temp directory %1$s",
|
||||
monitor.setResult("Failed to create directory %1$s",
|
||||
unzipDestFolder.getPath());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (!unzipFolder(archiveFile, getSize(), unzipDestFolder, desc, monitor)) {
|
||||
return false;
|
||||
|
||||
@@ -317,10 +317,13 @@ public class UpdaterWindowImpl {
|
||||
mUpdaterData.getSources().add(
|
||||
new RepoSource(SdkRepository.URL_GOOGLE_SDK_REPO_SITE, false /* addonOnly */));
|
||||
|
||||
String url = System.getenv("TEMP_SDK_URL"); // TODO STOPSHIP temporary remove before shipping
|
||||
if (url != null) {
|
||||
String str = System.getenv("TEMP_SDK_URL"); // TODO STOPSHIP temporary remove before shipping
|
||||
if (str != null) {
|
||||
String[] urls = str.split(";");
|
||||
for (String url : urls) {
|
||||
mUpdaterData.getSources().add(new RepoSource(url, false /* addonOnly */));
|
||||
}
|
||||
}
|
||||
|
||||
mRemotePackagesPage.setInput(mUpdaterData.getSourcesAdapter());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user