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
8f76f711
Kaydet (Commit)
8f76f711
authored
Mar 27, 2006
tarafından
Eray Özkural
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
* fix: decompress local file in read mode
üst
31a70530
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
api.py
pisi/api.py
+1
-0
file.py
pisi/file.py
+3
-2
index.py
pisi/index.py
+1
-1
No files found.
pisi/api.py
Dosyayı görüntüle @
8f76f711
...
...
@@ -298,6 +298,7 @@ def index(dirs, output = 'pisi-index.xml', skip_sources=False):
if
not
dirs
:
dirs
=
[
'.'
]
for
repo_dir
in
dirs
:
repo_dir
=
str
(
repo_dir
)
ctx
.
ui
.
info
(
_
(
'* Building index of PISI files under
%
s'
)
%
repo_dir
)
index
.
index
(
repo_dir
,
skip_sources
)
index
.
write
(
output
,
sha1sum
=
True
,
compress
=
File
.
xmill
)
...
...
pisi/file.py
Dosyayı görüntüle @
8f76f711
...
...
@@ -119,8 +119,9 @@ class File:
else
:
raise
Error
(
_
(
"Remote write not implemented"
))
else
:
localfile
=
uri
.
get_uri
()
#TODO: use a special function here?
localfile
=
File
.
decompress
(
localfile
,
self
.
compress
)
localfile
=
uri
.
get_uri
()
if
self
.
mode
==
File
.
read
:
localfile
=
File
.
decompress
(
localfile
,
self
.
compress
)
if
self
.
mode
==
File
.
read
:
access
=
'r'
...
...
pisi/index.py
Dosyayı görüntüle @
8f76f711
...
...
@@ -98,7 +98,7 @@ class Index(XmlFile):
errs
=
md
.
errors
()
if
md
.
errors
():
ctx
.
ui
.
error
(
_
(
'Package
%
s: metadata corrupt'
)
%
md
.
package
.
name
)
ctx
.
ui
.
error
(
str
(
Error
(
*
errs
)))
ctx
.
ui
.
error
(
unicode
(
Error
(
*
errs
)))
else
:
self
.
packages
.
append
(
md
.
package
)
...
...
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