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
e446c604
Kaydet (Commit)
e446c604
authored
Tem 20, 2021
tarafından
Ali Rıza KESKİN
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix source repo la
üst
f0a8744b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
repodb.py
inary/db/repodb.py
+3
-5
No files found.
inary/db/repodb.py
Dosyayı görüntüle @
e446c604
...
@@ -170,7 +170,9 @@ class RepoDB(lazydb.LazyDB):
...
@@ -170,7 +170,9 @@ class RepoDB(lazydb.LazyDB):
repo
=
self
.
get_repo
(
repo_name
)
repo
=
self
.
get_repo
(
repo_name
)
index_path
=
repo
.
indexuri
.
get_uri
()
index_path
=
repo
.
indexuri
.
get_uri
()
if
index_path
==
None
:
#or not os.path.exists(index_path):
# ctx.ui.warning(_("{} repository needs to be updated").format(repo_name))
return
xmlext
.
newDocument
(
"INARY"
)
# FIXME Local index files should also be cached.
# FIXME Local index files should also be cached.
if
File
.
is_compressed
(
index_path
)
or
repo
.
indexuri
.
is_remote_file
():
if
File
.
is_compressed
(
index_path
)
or
repo
.
indexuri
.
is_remote_file
():
index
=
os
.
path
.
basename
(
index_path
)
index
=
os
.
path
.
basename
(
index_path
)
...
@@ -180,10 +182,6 @@ class RepoDB(lazydb.LazyDB):
...
@@ -180,10 +182,6 @@ class RepoDB(lazydb.LazyDB):
if
File
.
is_compressed
(
index_path
):
if
File
.
is_compressed
(
index_path
):
index_path
=
os
.
path
.
splitext
(
index_path
)[
0
]
index_path
=
os
.
path
.
splitext
(
index_path
)[
0
]
if
not
os
.
path
.
exists
(
index_path
):
# ctx.ui.warning(_("{} repository needs to be updated").format(repo_name))
return
xmlext
.
newDocument
(
"INARY"
)
try
:
try
:
return
xmlext
.
parse
(
index_path
)
return
xmlext
.
parse
(
index_path
)
except
Exception
as
e
:
except
Exception
as
e
:
...
...
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