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
1d076d3d
Kaydet (Commit)
1d076d3d
authored
Mar 24, 2006
tarafından
Eray Özkural
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
* fix: sha1sum stuff
üst
0ef315a5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
file.py
pisi/file.py
+3
-2
index.py
pisi/index.py
+1
-1
xmlfilecdom.py
pisi/pxml/xmlfilecdom.py
+1
-1
No files found.
pisi/file.py
Dosyayı görüntüle @
1d076d3d
...
...
@@ -65,9 +65,7 @@ class File:
newsha1
=
sha1f
.
readlines
()[
0
]
if
uri
.
is_remote_file
():
ctx
.
ui
.
info
(
_
(
"Fetching
%
s"
)
%
uri
.
get_uri
())
localfile
=
join
(
transfer_dir
,
uri
.
filename
())
fetch_url
(
uri
,
transfer_dir
)
# FIXME: localfile would look better for fetch iface?
# TODO: code to use old .sha1sum file, is this a necessary optimization?
#oldsha1fn = localfile + '.sha1sum'
...
...
@@ -78,6 +76,9 @@ class File:
if
(
newsha1
==
oldsha1
):
# early terminate, we already got it ;)
raise
AlreadyHaveException
(
uri
,
localfile
)
ctx
.
ui
.
info
(
_
(
"Fetching
%
s"
)
%
uri
.
get_uri
())
fetch_url
(
uri
,
transfer_dir
)
else
:
localfile
=
uri
.
get_uri
()
#TODO: use a special function here?
...
...
pisi/index.py
Dosyayı görüntüle @
1d076d3d
...
...
@@ -52,7 +52,7 @@ class Index(XmlFile):
def
read_uri
(
self
,
filename
,
repo
=
None
):
"""Read PSPEC file"""
tmpdir
=
os
.
path
.
join
(
ctx
.
config
.
index_dir
(),
repo
)
self
.
read
(
filename
,
tmpdir
,
sha1sum
=
True
)
self
.
read
(
filename
,
tmp
Dir
=
tmp
dir
,
sha1sum
=
True
)
def
index
(
self
,
repo_uri
,
skip_sources
=
False
):
self
.
repo_dir
=
repo_uri
...
...
pisi/pxml/xmlfilecdom.py
Dosyayı görüntüle @
1d076d3d
...
...
@@ -67,7 +67,7 @@ class XmlFile(object):
"""returns root document element"""
return
self
.
doc
.
documentElement
def
readxml
(
self
,
uri
,
tmpDir
=
'/tmp'
,
sha1sum
=
False
,
compress
=
None
):
def
readxml
(
self
,
uri
,
tmpDir
=
'/tmp'
,
sha1sum
=
False
,
compress
=
None
):
uri
=
File
.
make_uri
(
uri
)
localpath
=
File
.
download
(
uri
,
tmpDir
,
sha1sum
=
sha1sum
,
compress
=
compress
)
try
:
...
...
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