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
0ab561bf
Kaydet (Commit)
0ab561bf
authored
Eyl 27, 2012
tarafından
Tim Retout
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
installer: Move two copies of make_systemcall into systemactions.pm
Change-Id: I526fae59d28e75d27259867e3fc7e7c99be0d437
üst
b45263ad
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
59 deletions
+35
-59
epmfile.pm
solenv/bin/modules/installer/epmfile.pm
+9
-33
systemactions.pm
solenv/bin/modules/installer/systemactions.pm
+25
-0
worker.pm
solenv/bin/modules/installer/worker.pm
+1
-26
No files found.
solenv/bin/modules/installer/epmfile.pm
Dosyayı görüntüle @
0ab561bf
...
...
@@ -2227,7 +2227,7 @@ sub create_packages_without_epm
my
$pkginfoorig
=
"$destinationdir/$packagename/pkginfo"
;
my
$pkginfotmp
=
"$destinationdir/$packagename"
.
".pkginfo.tmp"
;
$systemcall
=
"cp -p $pkginfoorig $pkginfotmp"
;
make_systemcall($systemcall
);
installer::systemactions::
make_systemcall
(
$systemcall
);
$faspac
=
$$compressorref
;
$infoline
=
"Found compressor: $faspac\n"
;
...
...
@@ -2237,12 +2237,13 @@ sub create_packages_without_epm
installer::logger::
include_timestamp_into_logfile
(
"Starting $faspac"
);
$systemcall
=
"/bin/sh $faspac -a -q -d $destinationdir $packagename"
;
# $faspac has to be the absolute path!
make_systemcall($systemcall
);
installer::systemactions::
make_systemcall
(
$systemcall
);
# Setting time stamp for pkginfo, because faspac-so.sh changed the pkginfo file,
# updated the size and checksum, but not the time stamp.
# Setting time stamp for pkginfo, because faspac-so.sh
# changed the pkginfo file, updated the size and
# checksum, but not the time stamp.
$systemcall
=
"touch -r $pkginfotmp $pkginfoorig"
;
make_systemcall($systemcall
);
installer::systemactions::
make_systemcall
(
$systemcall
);
if
(
-
f
$pkginfotmp
)
{
unlink
(
$pkginfotmp
);
}
installer::logger::
include_timestamp_into_logfile
(
"End of $faspac"
);
...
...
@@ -2530,31 +2531,6 @@ sub remove_temporary_epm_files
}
}
######################################################
# Making the systemcall
######################################################
sub
make_systemcall
{
my
(
$systemcall
)
=
@_
;
my
$returnvalue
=
system
(
$systemcall
);
my
$infoline
=
"Systemcall: $systemcall\n"
;
push
(
@
installer::globals::
logfileinfo
,
$infoline
);
if
(
$returnvalue
)
{
$infoline
=
"ERROR: Could not execute \"$systemcall\"!\n"
;
push
(
@
installer::globals::
logfileinfo
,
$infoline
);
}
else
{
$infoline
=
"Success: Executed \"$systemcall\" successfully!\n"
;
push
(
@
installer::globals::
logfileinfo
,
$infoline
);
}
}
###########################################################
# Creating a better directory structure in the solver.
###########################################################
...
...
@@ -2683,11 +2659,11 @@ sub unpack_tar_gz_file
# unpacking gunzip
my
$systemcall
=
"cd $destdir; cat $packagename | gunzip | tar -xf -"
;
make_systemcall($systemcall
);
installer::systemactions::
make_systemcall
(
$systemcall
);
# deleting the tar.gz files
$systemcall
=
"cd $destdir; rm -f $packagename"
;
make_systemcall($systemcall
);
installer::systemactions::
make_systemcall
(
$systemcall
);
# Finding new content -> that is the package name
my
(
$newcontent
,
$allcontent
)
=
installer::systemactions::
find_new_content_in_directory
(
$destdir
,
$oldcontent
);
...
...
@@ -2709,7 +2685,7 @@ sub copy_and_unpack_tar_gz_files
my
(
$sourcefile
,
$destdir
)
=
@_
;
my
$systemcall
=
"cd $destdir; cat $sourcefile | gunzip | tar -xf -"
;
make_systemcall($systemcall
);
installer::systemactions::
make_systemcall
(
$systemcall
);
}
######################################################
...
...
solenv/bin/modules/installer/systemactions.pm
Dosyayı görüntüle @
0ab561bf
...
...
@@ -1358,4 +1358,29 @@ sub remove_empty_dirs_in_folder
}
######################################################
# Making systemcall
######################################################
sub
make_systemcall
{
my
(
$systemcall
)
=
@_
;
my
$returnvalue
=
system
(
$systemcall
);
my
$infoline
=
"Systemcall: $systemcall\n"
;
push
(
@
installer::globals::
logfileinfo
,
$infoline
);
if
(
$returnvalue
)
{
$infoline
=
"ERROR: Could not execute \"$systemcall\"!\n"
;
push
(
@
installer::globals::
logfileinfo
,
$infoline
);
}
else
{
$infoline
=
"Success: Executed \"$systemcall\" successfully!\n"
;
push
(
@
installer::globals::
logfileinfo
,
$infoline
);
}
}
1
;
solenv/bin/modules/installer/worker.pm
Dosyayı görüntüle @
0ab561bf
...
...
@@ -871,31 +871,6 @@ sub replace_variables_in_string
return
$string
;
}
######################################################
# Making systemcall
######################################################
sub
make_systemcall
{
my
(
$systemcall
)
=
@_
;
my
$returnvalue
=
system
(
$systemcall
);
my
$infoline
=
"Systemcall: $systemcall\n"
;
push
(
@
installer::globals::
logfileinfo
,
$infoline
);
if
(
$returnvalue
)
{
$infoline
=
"ERROR: Could not execute \"$systemcall\"!\n"
;
push
(
@
installer::globals::
logfileinfo
,
$infoline
);
}
else
{
$infoline
=
"Success: Executed \"$systemcall\" successfully!\n"
;
push
(
@
installer::globals::
logfileinfo
,
$infoline
);
}
}
#################################################################
# Copying the files defined as ScpActions into the
# installation set.
...
...
@@ -1419,7 +1394,7 @@ sub collectpackagemaps
my
$tarfilename
=
$subdirname
.
".tar"
;
my
$targzname
=
$tarfilename
.
".gz"
;
$systemcall
=
"cd $pkgmapdir; tar -cf - $subdirname | gzip > $targzname"
;
make_systemcall($systemcall
);
installer::systemactions::
make_systemcall
(
$systemcall
);
installer::systemactions::
remove_complete_directory
(
$pkgmapsubdir
,
1
);
}
...
...
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