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
373a17df
Kaydet (Commit)
373a17df
authored
Eki 17, 2020
tarafından
Your Name
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
emerge fix 4
üst
8d7b560e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
build.py
inary/operations/build.py
+10
-7
emerge.py
inary/operations/emerge.py
+1
-1
No files found.
inary/operations/build.py
Dosyayı görüntüle @
373a17df
...
...
@@ -209,24 +209,24 @@ class Builder:
raise
Error
(
_
(
"Source
\"
{}
\"
not found in any active repository."
)
.
format
(
name
))
def
__init__
(
self
,
specuri
):
def
__init__
(
self
,
specuri
,
emerge
=
False
):
self
.
emerge
=
emerge
self
.
componentdb
=
inary
.
db
.
componentdb
.
ComponentDB
()
self
.
installdb
=
inary
.
db
.
installdb
.
InstallDB
()
self
.
specuri
=
specuri
self
.
specdiruri
=
os
.
path
.
dirname
(
self
.
specuri
)
if
len
(
self
.
specdiruri
)
>
0
:
if
len
(
self
.
specdiruri
)
>
0
and
self
.
emerge
:
self
.
pkgname
=
os
.
path
.
basename
(
self
.
specdiruri
)
self
.
destdir
=
util
.
join_path
(
ctx
.
config
.
tmp_dir
(),
self
.
pkgname
)
else
:
self
.
pkgname
=
""
self
.
destdir
=
os
.
getcwd
()
self
.
destdir
=
None
# process args
if
not
isinstance
(
specuri
,
inary
.
uri
.
URI
):
specuri
=
inary
.
uri
.
URI
(
specuri
)
self
.
fetch_pspecfile
()
if
self
.
emerge
:
self
.
fetch_pspecfile
()
# read spec file, we'll need it :)
self
.
spec
=
self
.
set_spec_file
(
specuri
)
...
...
@@ -292,7 +292,10 @@ class Builder:
self
.
specuri
=
specuri
spec
=
Specfile
.
SpecFile
()
spec
.
read
(
"{}/{}"
.
format
(
self
.
destdir
,
ctx
.
const
.
pspec_file
),
self
.
specuri
)
if
self
.
emerge
:
spec
.
read
(
"{}/{}"
.
format
(
self
.
destdir
,
ctx
.
const
.
pspec_file
),
self
.
specuri
)
else
:
spec
.
read
(
self
.
specuri
,
ctx
.
config
.
tmp_dir
())
return
spec
def
read_translations
(
self
,
specdir
):
...
...
inary/operations/emerge.py
Dosyayı görüntüle @
373a17df
...
...
@@ -81,7 +81,7 @@ installed in the respective order to satisfy dependencies:
# ctx.ui.notify(ui.packagestogo, order = order_build)
for
x
in
order_build
:
package_names
=
operations
.
build
.
build
(
x
)
.
new_packages
package_names
=
operations
.
build
.
build
(
x
,
emerge
=
True
)
.
new_packages
inary
.
operations
.
install
.
install_pkg_files
(
package_names
,
reinstall
=
True
)
# handle inter-package deps here
# reset counts between builds
...
...
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