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
c55a340a
Kaydet (Commit)
c55a340a
authored
Agu 19, 2012
tarafından
Tim Retout
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
installer: Replace remove_empty_directory with rmdir.
Change-Id: Ief3248e0b591a9216ac243fca38904366bab6391
üst
fa98546c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
40 deletions
+8
-40
epmfile.pm
solenv/bin/modules/installer/epmfile.pm
+8
-8
systemactions.pm
solenv/bin/modules/installer/systemactions.pm
+0
-32
No files found.
solenv/bin/modules/installer/epmfile.pm
Dosyayı görüntüle @
c55a340a
...
...
@@ -2602,14 +2602,14 @@ sub create_new_directory_structure
if
(
$machine
ne
""
)
{
installer::systemactions::
remove_empty_directory
(
"$installer::globals::epmoutpath/RPMS/$machine"
)
;
}
installer::systemactions::
remove_empty_directory
(
"$installer::globals::epmoutpath/RPMS/powerpc"
)
;
installer::systemactions::
remove_empty_directory
(
"$installer::globals::epmoutpath/RPMS/x86_64"
)
;
installer::systemactions::
remove_empty_directory
(
"$installer::globals::epmoutpath/RPMS/i586"
)
;
installer::systemactions::
remove_empty_directory
(
"$installer::globals::epmoutpath/RPMS/i386"
)
;
installer::systemactions::
remove_empty_directory
(
"$installer::globals::epmoutpath/RPMS"
);
rmdir
"$installer::globals::epmoutpath/RPMS/$machine"
;
}
rmdir
"$installer::globals::epmoutpath/RPMS/powerpc"
;
rmdir
"$installer::globals::epmoutpath/RPMS/x86_64"
;
rmdir
"$installer::globals::epmoutpath/RPMS/i586"
;
rmdir
"$installer::globals::epmoutpath/RPMS/i386"
;
rmdir
"$installer::globals::epmoutpath/RPMS"
or
warn
"Could not remove RPMS dir: $!"
;
}
# Setting unix rights to "775" for $newdir ("RPMS" or "packages")
...
...
solenv/bin/modules/installer/systemactions.pm
Dosyayı görüntüle @
c55a340a
...
...
@@ -154,38 +154,6 @@ sub create_directory_with_privileges
}
}
######################################################
# Removing a new direcotory
######################################################
sub
remove_empty_directory
{
my
(
$directory
)
=
@_
;
my
$returnvalue
=
1
;
if
(
-
d
$directory
)
{
my
$systemcall
=
"rmdir $directory"
;
$returnvalue
=
system
(
$systemcall
);
my
$infoline
=
"Systemcall: $systemcall\n"
;
push
(
@
installer::globals::
logfileinfo
,
$infoline
);
if
(
$returnvalue
)
{
$infoline
=
"ERROR: Could not remove \"$directory\"!\n"
;
push
(
@
installer::globals::
logfileinfo
,
$infoline
);
}
else
{
$infoline
=
"Success: Removed \"$directory\"!\n"
;
push
(
@
installer::globals::
logfileinfo
,
$infoline
);
}
}
}
#######################################################################
# Calculating the number of languages in the string
#######################################################################
...
...
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