Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
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)
1
Konular (issue)
1
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ç
SulinOS
inary
Commits
19971a04
Kaydet (Commit)
19971a04
authored
May 07, 2021
tarafından
𐰀𐰞𐰃:𐰺𐰃𐰔𐰀:𐰚𐰀𐰾𐰚𐰃𐰤 (𐰽𐰆𐰞𐰃𐰤𐰆𐰽)
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge branch 'develop' into 'master'
Develop See merge request sulinos/devel/inary!48
üst
8e1f0f25
47929ae5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
archive.py
inary/archive.py
+10
-4
No files found.
inary/archive.py
Dosyayı görüntüle @
19971a04
...
@@ -515,12 +515,18 @@ class ArchiveTar(ArchiveBase):
...
@@ -515,12 +515,18 @@ class ArchiveTar(ArchiveBase):
#
#
# Note: This is no good while installing a inary package.
# Note: This is no good while installing a inary package.
# Thats why this is optional.
# Thats why this is optional.
if
not
os
.
path
.
islink
(
tarinfo
.
name
):
if
os
.
path
.
isfile
(
tarinfo
.
name
):
os
.
chown
(
tarinfo
.
name
,
0
,
0
)
if
os
.
getuid
()
==
0
:
os
.
chown
(
tarinfo
.
name
,
0
,
0
)
os
.
chmod
(
tarinfo
.
name
,
tarinfo
.
mode
)
os
.
chmod
(
tarinfo
.
name
,
tarinfo
.
mode
)
# FIXME: We must chmod directory as 755. Empty directory permission is 777. Remove this
elif
os
.
path
.
isdir
(
tarinfo
.
name
):
if
os
.
getuid
()
==
0
:
os
.
chown
(
tarinfo
.
name
,
0
,
0
)
os
.
chmod
(
tarinfo
.
name
,
0
o755
)
else
:
else
:
os
.
lchown
(
tarinfo
.
name
,
0
,
0
)
if
os
.
getuid
()
==
0
:
os
.
chmod
(
tarinfo
.
name
,
tarinfo
.
mode
)
os
.
lchown
(
tarinfo
.
name
,
0
,
0
)
if
self
.
no_same_owner
:
if
self
.
no_same_owner
:
uid
=
os
.
getuid
()
uid
=
os
.
getuid
()
...
...
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