private static final String SDK_IMAGE_ZIP_EXTENSION = ".zip";
public static boolean cliInstall(List<String> packageNames) throws IMExitException {
+ if (!Options.isAgreeLicense) {
+ System.out.println("You must agree the licenses of Tizen SDK components before installing SDK.");
+ System.out.println("If you agree them, use '-accept_license' option.");
+ Log.err("Cannot find '-accept_license' option.");
+ return false;
+ }
+
if (Options.isNetwork) {
return cliNetworkInstall(packageNames);
} else {
public static boolean doPackageValidation = true;
/**
- * Do auto install without GUI
- */
- public static boolean doInstallNoUI = false;
- public static boolean doRemoveNoUI = false;
- public static boolean doUpdateNoUI = false;
- public static boolean doShowDistListNoUI = false;
- public static boolean doShowPackageListNoUI = false;
- public static boolean doShowSDKInstallStatus = false;
- public static boolean doShowHelp = false;
-
- /**
* Do download package file.
*/
public static boolean onlyDownload = false;
public static boolean snapshot = false;
/**
- * Use cli mode
- */
+ * Do auto install or uninstall without GUI
+ */
+ public static boolean doInstallNoUI = false;
+ public static boolean doRemoveNoUI = false;
+ public static boolean doUpdateNoUI = false;
+ public static boolean doShowDistListNoUI = false;
+ public static boolean doShowPackageListNoUI = false;
+ public static boolean doShowSDKInstallStatus = false;
+ public static boolean doShowHelp = false;
+
public static String repository = null;
public static String imageFilePath = null;
public static String snapshotPath = null;
public static List<String> packages = new ArrayList<String>();
public static List<String> skipPackages = new ArrayList<String>();
+ public static boolean isAgreeLicense = false;
+
/**
* Use only download for making SDK image.
*/
}
}
+ // set license agreement
+ if (doInstallNoUI) {
+ argIter = argArray.iterator();
+ while (argIter.hasNext()) {
+ if (argIter.next().equalsIgnoreCase("-accept_license")) {
+ argIter.remove();
+ isAgreeLicense = true;
+ }
+ }
+ }
+
+ // set sdk data directory
argIter = argArray.iterator();
while (argIter.hasNext()) {
if (argIter.next().equalsIgnoreCase("-w")) {
import org.tizen.installmanager.pkg.lib.PackageManager;
import org.tizen.installmanager.pkg.model.ConfigFile;
import org.tizen.installmanager.pkg.model.PackageSet;
-import org.tizen.installmanager.pkg.model.Property;
import org.tizen.installmanager.ui.dialog.AddExtraRepositoryDialog;
import org.tizen.installmanager.ui.dialog.IndeterminateProgressDialog;
import org.tizen.installmanager.ui.dialog.MessageBoxDlg;