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
37628ed5
Kaydet (Commit)
37628ed5
authored
Nis 02, 2021
tarafından
root
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
source package listing for non-binary repository
üst
af5d6843
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
metadata.py
inary/data/metadata.py
+1
-0
packagedb.py
inary/db/packagedb.py
+6
-1
sourcedb.py
inary/db/sourcedb.py
+0
-2
No files found.
inary/data/metadata.py
Dosyayı görüntüle @
37628ed5
...
...
@@ -73,6 +73,7 @@ class Package(specfile.Package, xmlfile.XmlFile, metaclass=autoxml.autoxml):
return
None
def
decode_hook
(
self
,
node
,
errs
,
where
):
if
len
(
self
.
history
)
>
0
:
self
.
version
=
self
.
history
[
0
]
.
version
self
.
release
=
self
.
history
[
0
]
.
release
...
...
inary/db/packagedb.py
Dosyayı görüntüle @
37628ed5
...
...
@@ -89,7 +89,12 @@ class PackageDB(lazydb.LazyDB):
compressed_data
=
gzip
.
zlib
.
compress
(
xmlext
.
toString
(
x
)
.
encode
(
'utf-8'
))
pdict
[
name
]
=
compressed_data
for
x
in
xmlext
.
getTagByName
(
doc
,
"SpecFile"
):
source
=
xmlext
.
getNode
(
x
,
"Source"
)
name
=
xmlext
.
getNodeText
(
source
,
"Name"
)
compressed_data
=
gzip
.
zlib
.
compress
(
xmlext
.
toString
(
source
)
.
encode
(
'utf-8'
))
pdict
[
name
]
=
compressed_data
return
pdict
@staticmethod
...
...
inary/db/sourcedb.py
Dosyayı görüntüle @
37628ed5
...
...
@@ -43,7 +43,6 @@ class SourceDB(lazydb.LazyDB):
self
.
__revdeps
=
{}
repodb
=
inary
.
db
.
repodb
.
RepoDB
()
for
repo
in
repodb
.
list_repos
():
doc
=
repodb
.
get_repo_doc
(
repo
)
self
.
__source_nodes
[
repo
],
self
.
__pkgstosrc
[
repo
]
=
self
.
__generate_sources
(
...
...
@@ -59,7 +58,6 @@ class SourceDB(lazydb.LazyDB):
def
__generate_sources
(
doc
):
sources
=
{}
pkgstosrc
=
{}
for
spec
in
xmlext
.
getTagByName
(
doc
,
"SpecFile"
):
src
=
xmlext
.
getNode
(
spec
,
"Source"
)
src_name
=
xmlext
.
getNodeText
(
src
,
"Name"
)
...
...
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