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
94044ffe
Kaydet (Commit)
94044ffe
authored
Şub 19, 2020
tarafından
Your Name
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
archive open bug was fixed
üst
8c9509e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
archive.py
inary/archive.py
+0
-12
No files found.
inary/archive.py
Dosyayı görüntüle @
94044ffe
...
...
@@ -705,7 +705,6 @@ class ArchiveZip(ArchiveBase):
pred: filename -> bool
unpacks stuff into target_dir and only extracts files
from archive_root, treating it as the archive root"""
zip_obj
=
self
.
zip_obj
for
info
in
zip_obj
.
infolist
():
if
pred
(
info
.
filename
):
# check if condition holds
...
...
@@ -728,11 +727,6 @@ class ArchiveZip(ArchiveBase):
if
is_dir
:
# this is a directory
if
not
os
.
path
.
isdir
(
ofile
):
os
.
makedirs
(
ofile
)
perm
=
info
.
external_attr
perm
&=
0xFFFF0000
perm
>>=
16
perm
|=
0x00000100
os
.
chmod
(
ofile
,
perm
)
continue
# check that output dir is present
...
...
@@ -751,14 +745,8 @@ class ArchiveZip(ArchiveBase):
target
=
zip_obj
.
read
(
info
.
filename
)
os
.
symlink
(
target
,
ofile
)
else
:
perm
=
info
.
external_attr
perm
&=
0x08FF0000
perm
>>=
16
perm
|=
0x00000100
info
.
filename
=
outpath
zip_obj
.
extract
(
info
,
target_dir
)
os
.
chmod
(
ofile
,
perm
)
def
unpack_files
(
self
,
paths
,
target_dir
):
self
.
unpack_file_cond
(
lambda
f
:
f
in
paths
,
target_dir
)
...
...
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