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
462d5ae1
Kaydet (Commit)
462d5ae1
authored
Mar 14, 2018
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
RepoDB hariç hepsi çalışıyor.
üst
9f03266f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
21 deletions
+20
-21
groupdb.py
inary/db/groupdb.py
+5
-5
installdb.py
inary/db/installdb.py
+10
-7
repodb.py
inary/db/repodb.py
+3
-3
requirements.txt
requirements.txt
+0
-4
setup.py
setup.py
+2
-2
No files found.
inary/db/groupdb.py
Dosyayı görüntüle @
462d5ae1
...
...
@@ -46,15 +46,15 @@ class GroupDB(lazydb.LazyDB):
groups
=
{}
for
c
in
doc
.
childNodes
:
if
c
.
nodeType
==
c
.
ELEMENT_NODE
and
c
.
tagName
==
"Component"
:
group
=
c
.
getElementsByTagName
(
"Group"
)[
0
]
if
not
group
:
group
=
"unknown"
groups
.
setdefault
(
group
.
firstChild
.
data
,
[])
.
append
(
c
.
getElementsByTagName
(
"Name"
)[
0
]
.
firstChild
.
data
)
group
=
c
.
getElementsByTagName
(
"Group"
)[
0
]
if
not
group
:
group
=
"unknown"
groups
.
setdefault
(
group
.
firstChild
.
data
,
[])
.
append
(
c
.
getElementsByTagName
(
"Name"
)[
0
]
.
firstChild
.
data
)
return
groups
def
__generate_groups
(
self
,
doc
):
return
dict
([(
x
.
getElementsByTagName
(
"Name"
)[
0
]
.
firstChild
.
data
,
x
.
toxml
())
\
for
x
in
doc
.
childNodes
if
c
.
nodeType
==
c
.
ELEMENT_NODE
and
c
.
tagName
==
"Group"
])
for
x
in
doc
.
childNodes
if
x
.
nodeType
==
x
.
ELEMENT_NODE
and
x
.
tagName
==
"Group"
])
def
has_group
(
self
,
name
,
repo
=
None
):
return
self
.
gdb
.
has_item
(
name
,
repo
)
...
...
inary/db/installdb.py
Dosyayı görüntüle @
462d5ae1
...
...
@@ -107,13 +107,16 @@ class InstallDB(lazydb.LazyDB):
deps
=
pkg
.
getElementsByTagName
(
'RuntimeDependencies'
)
if
deps
:
for
dep
in
deps
.
getElementsByTagName
(
"Dependency"
):
revdep
=
revdeps
.
setdefault
(
dep
.
childNodes
[
0
]
.
data
,
{})
revdep
[
package
]
=
dep
.
toxml
(
'utf-8'
)
for
anydep
in
deps
.
getElementsByTagName
(
"AnyDependency"
):
for
dep
in
anydep
.
getElementsByTagName
(
"Dependency"
):
revdep
=
revdeps
.
setdefault
(
dep
.
firstChild
.
data
,
{})
revdep
[
package
]
=
anydep
.
toxml
(
'utf-8'
)
for
dep_tag
in
deps
:
for
dep
in
dep_tag
.
childNodes
:
if
dep
.
nodeType
==
dep
.
ELEMENT_NODE
and
dep
.
tagName
==
"Dependency"
:
revdep
=
revdeps
.
setdefault
(
dep
.
childNodes
[
0
]
.
data
,
{})
revdep
[
package
]
=
dep
.
toxml
(
'utf-8'
)
for
anydep
in
dep_tag
.
childNodes
:
if
dep
.
nodeType
==
dep
.
ELEMENT_NODE
and
dep
.
tagName
==
"AnyDependency"
:
for
dep
in
anydep
.
getElementsByTagName
(
"Dependency"
):
revdep
=
revdeps
.
setdefault
(
dep
.
firstChild
.
data
,
{})
revdep
[
package
]
=
anydep
.
toxml
(
'utf-8'
)
def
__generate_revdeps
(
self
):
revdeps
=
{}
...
...
inary/db/repodb.py
Dosyayı görüntüle @
462d5ae1
...
...
@@ -48,7 +48,7 @@ class RepoOrder:
self
.
repos
=
self
.
_get_repos
()
def
add
(
self
,
repo_name
,
repo_url
,
repo_type
=
"remote"
):
repo_doc
=
self
.
_get_doc
()
repo_doc
=
self
.
_get_doc
()
.
ownerDocument
repo_node
=
repo_doc
.
createElement
(
"Repo"
)
...
...
@@ -126,11 +126,11 @@ class RepoOrder:
if
self
.
_doc
is
None
:
repos_file
=
os
.
path
.
join
(
ctx
.
config
.
info_dir
(),
ctx
.
const
.
repos
)
if
os
.
path
.
exists
(
repos_file
):
self
.
_doc
=
minidom
.
parse
(
repos_file
)
self
.
_doc
=
minidom
.
parse
(
repos_file
)
.
documentElement
else
:
impl
=
minidom
.
getDOMImplementation
()
dom
=
impl
.
createDocument
(
None
,
"REPOS"
,
None
)
self
.
_doc
=
dom
self
.
_doc
=
dom
.
documentElement
return
self
.
_doc
...
...
requirements.txt
Dosyayı görüntüle @
462d5ae1
plyvel
psutil
filemagic
git+https://github.com/Zaryob/scom-api.git
git+https://github.com/Zaryob/ciksemel.git
git+https://github.com/Zaryob/catbox.git
setup.py
Dosyayı görüntüle @
462d5ae1
...
...
@@ -168,7 +168,6 @@ class Uninstall(Command):
if
os
.
path
.
exists
(
project_dir
):
print
(
' removing: '
,
project_dir
)
shutil
.
rmtree
(
project_dir
)
#class makeTest():
datas
=
[
...
...
@@ -199,7 +198,8 @@ setup(name="inary",
'scripts/lsinary'
,
'scripts/uninary'
,
'scripts/check-newconfigs.py'
,
'scripts/inarysh'
],
'scripts/inarysh'
,
'tools/pspec2po'
],
include_package_data
=
True
,
cmdclass
=
{
'build'
:
Build
,
'build_po'
:
BuildPo
,
...
...
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