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
fd3b4e13
Kaydet (Commit)
fd3b4e13
authored
Eki 16, 2020
tarafından
root
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
emerge fixes 1
üst
1b81b765
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
Makefile
Makefile
+1
-1
emerge.py
inary/operations/emerge.py
+6
-3
No files found.
Makefile
Dosyayı görüntüle @
fd3b4e13
DESTDIR
=
/
all
:
build
all
:
clean
build
clean
:
`
find |
grep
pycache |
sed
's/^/rm -rf /g'
`
...
...
inary/operations/emerge.py
Dosyayı görüntüle @
fd3b4e13
...
...
@@ -21,6 +21,7 @@ import inary.data
import
inary.ui
as
ui
import
inary.util
as
util
import
inary.context
as
ctx
import
inary.data.pgraph
as
pgraph
import
inary.operations
as
operations
import
inary.atomicoperations
as
atomicoperations
...
...
@@ -95,11 +96,12 @@ installed in the respective order to satisfy dependencies:
def
plan_emerge
(
A
):
sourcedb
=
inary
.
db
.
sourcedb
.
SourceDB
()
installdb
=
inary
.
db
.
installdb
.
InstallDB
()
# try to construct a inary graph of packages to
# install / reinstall
G_f
=
inary
.
data
.
pgraph
.
Digraph
(
)
G_f
=
pgraph
.
PGraph
(
sourcedb
,
installdb
)
def
get_spec
(
name
):
if
sourcedb
.
has_spec
(
name
):
...
...
@@ -113,8 +115,9 @@ def plan_emerge(A):
def
add_src
(
src
):
if
not
str
(
src
.
name
)
in
G_f
.
vertices
():
G_f
.
add_vertex
(
str
(
src
.
name
),
(
src
.
version
,
src
.
release
))
# TODO replace this shitty way with a function
G_f
.
packages
.
append
(
src
.
name
)
def
pkgtosrc
(
pkg
):
return
sourcedb
.
pkgtosrc
(
pkg
)
...
...
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