Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
73971533
Kaydet (Commit)
73971533
authored
Eyl 13, 2010
tarafından
Ingo Schmidt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
native330 #163564# fixing installation on Cent OS
üst
109c2197
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
12 deletions
+32
-12
InstallData.java
...ller2/src/JavaSetup/org/openoffice/setup/InstallData.java
+9
-0
LinuxInstaller.java
...aSetup/org/openoffice/setup/Installer/LinuxInstaller.java
+0
-0
LinuxHelper.java
...tup/org/openoffice/setup/InstallerHelper/LinuxHelper.java
+23
-12
No files found.
javainstaller2/src/JavaSetup/org/openoffice/setup/InstallData.java
Dosyayı görüntüle @
73971533
...
@@ -76,6 +76,7 @@ public class InstallData
...
@@ -76,6 +76,7 @@ public class InstallData
static
private
boolean
useRtl
=
false
;
static
private
boolean
useRtl
=
false
;
static
private
boolean
installedProductMinorSet
=
false
;
static
private
boolean
installedProductMinorSet
=
false
;
static
private
boolean
isDebianSystem
=
false
;
static
private
boolean
isDebianSystem
=
false
;
static
private
boolean
useForceDebian
=
false
;
static
private
boolean
debianInvestigated
=
false
;
static
private
boolean
debianInvestigated
=
false
;
static
private
String
installType
;
/* custom or typical installation */
static
private
String
installType
;
/* custom or typical installation */
static
private
String
osType
;
/* Linux, SunOS, ... */
static
private
String
osType
;
/* Linux, SunOS, ... */
...
@@ -667,6 +668,14 @@ public class InstallData
...
@@ -667,6 +668,14 @@ public class InstallData
isDebianSystem
=
value
;
isDebianSystem
=
value
;
}
}
public
boolean
useForceDebian
()
{
return
useForceDebian
;
}
public
void
setUseForceDebian
(
boolean
value
)
{
useForceDebian
=
value
;
}
public
boolean
databaseQueried
()
{
public
boolean
databaseQueried
()
{
return
databaseQueried
;
return
databaseQueried
;
}
}
...
...
javainstaller2/src/JavaSetup/org/openoffice/setup/Installer/LinuxInstaller.java
Dosyayı görüntüle @
73971533
This diff is collapsed.
Click to expand it.
javainstaller2/src/JavaSetup/org/openoffice/setup/InstallerHelper/LinuxHelper.java
Dosyayı görüntüle @
73971533
...
@@ -383,21 +383,32 @@ import java.util.Vector;public class LinuxHelper {
...
@@ -383,21 +383,32 @@ import java.util.Vector;public class LinuxHelper {
public
void
investigateDebian
(
InstallData
data
)
{
public
void
investigateDebian
(
InstallData
data
)
{
// String rpmQuery = "rpm --help;
// First check: Is this a Debian system?
String
[]
rpmQueryArray
=
new
String
[
2
];
rpmQueryArray
[
0
]
=
"rpm"
;
rpmQueryArray
[
1
]
=
"--help"
;
Vector
returnVector
=
new
Vector
();
String
dpkgFile
=
"/usr/bin/dpkg"
;
Vector
returnErrorVector
=
new
Vector
();
int
returnValue
=
ExecuteProcess
.
executeProcessReturnVector
(
rpmQueryArray
,
returnVector
,
returnErrorVector
);
// Checking if the return vector contains the string "force-debian"
if
(
new
File
(
dpkgFile
).
exists
()
)
{
for
(
int
i
=
0
;
i
<
returnVector
.
size
();
i
++)
{
data
.
setIsDebianSystem
(
true
);
String
line
=
(
String
)
returnVector
.
get
(
i
);
if
(
line
.
indexOf
(
"force-debian"
)
>
-
1
)
{
// Second check: If this is a Debian system, is "--force-debian" required?
data
.
setIsDebianSystem
(
true
);
// String rpmQuery = "rpm --help;
String
[]
rpmQueryArray
=
new
String
[
2
];
rpmQueryArray
[
0
]
=
"rpm"
;
rpmQueryArray
[
1
]
=
"--help"
;
Vector
returnVector
=
new
Vector
();
Vector
returnErrorVector
=
new
Vector
();
int
returnValue
=
ExecuteProcess
.
executeProcessReturnVector
(
rpmQueryArray
,
returnVector
,
returnErrorVector
);
// Checking if the return vector contains the string "force-debian"
for
(
int
i
=
0
;
i
<
returnVector
.
size
();
i
++)
{
String
line
=
(
String
)
returnVector
.
get
(
i
);
if
(
line
.
indexOf
(
"force-debian"
)
>
-
1
)
{
data
.
setUseForceDebian
(
true
);
}
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment