summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-04-02 15:01:05 +0000
committerKurt Zenker <kz@openoffice.org>2008-04-02 15:01:05 +0000
commit27d3604ac62f69877b3d466c7e01e5dafcf88a92 (patch)
treebaf6aada59cfe5e354c12b3f64f31451e8e484cd
parent4a11557b3b89d676534f06f8f7d9e26bdf9929e3 (diff)
INTEGRATION: CWS native135 (1.5.6); FILE MERGED
2008/03/04 14:54:18 is 1.5.6.1: #i79534# installation in sparse zones with root privileges
-rwxr-xr-xjavainstaller2/src/JavaSetup/org/openoffice/setup/Util/ModuleCtrl.java16
1 files changed, 14 insertions, 2 deletions
diff --git a/javainstaller2/src/JavaSetup/org/openoffice/setup/Util/ModuleCtrl.java b/javainstaller2/src/JavaSetup/org/openoffice/setup/Util/ModuleCtrl.java
index 4818208967e7..378acefdd473 100755
--- a/javainstaller2/src/JavaSetup/org/openoffice/setup/Util/ModuleCtrl.java
+++ b/javainstaller2/src/JavaSetup/org/openoffice/setup/Util/ModuleCtrl.java
@@ -4,9 +4,9 @@
*
* $RCSfile: ModuleCtrl.java,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: ihi $ $Date: 2008-02-05 13:38:03 $
+ * last change: $Author: kz $ $Date: 2008-04-02 16:01:05 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -414,6 +414,18 @@ public class ModuleCtrl {
}
}
+ static public void setIgnoreNonRelocatablePackages(PackageDescription packageData) {
+ if ( ! packageData.isRelocatable() ) {
+ packageData.setSelectionState(PackageDescription.IGNORE);
+ System.err.println("Ignoring package " + packageData.getName() + " " + packageData.getPackageName());
+ }
+
+ for (Enumeration e = packageData.children(); e.hasMoreElements(); ) {
+ PackageDescription child = (PackageDescription) e.nextElement();
+ setIgnoreNonRelocatablePackages(child);
+ }
+ }
+
static public void setHiddenLanguageModuleDefaultSettings(PackageDescription packageData) {
// This function is needed during installation for the language modules,