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
cdea4c03
Kaydet (Commit)
cdea4c03
authored
Eyl 19, 2020
tarafından
𐰀𐰞𐰃:𐰺𐰃𐰔𐰀:𐰚𐰀𐰾𐰚𐰃𐰤 (𐰽𐰆𐰞𐰃𐰤𐰆𐰽)
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge branch 'develop' into 'master'
improvements See merge request sulinos/devel/inary!41
üst
a80b187e
dd4984e5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
13 deletions
+19
-13
checkrelation.py
inary/cli/checkrelation.py
+4
-4
fetcher.py
inary/fetcher.py
+1
-1
build.py
inary/operations/build.py
+8
-1
sulinstrapt
scripts/sulinstrapt
+6
-7
No files found.
inary/cli/checkrelation.py
Dosyayı görüntüle @
cdea4c03
...
...
@@ -71,6 +71,7 @@ Usage: check-relation
installed
.
sort
()
need_reinstall
=
[]
broken_packages
=
[]
for
pkg
in
installed
:
for
p
in
self
.
installdb
.
get_package
(
pkg
)
.
runtimeDependencies
():
...
...
@@ -78,9 +79,8 @@ Usage: check-relation
if
not
self
.
installdb
.
has_package
(
str
(
p
.
package
)):
need_reinstall
.
append
(
p
.
package
)
sys
.
stderr
.
write
(
_
(
"Missing: - {}"
)
.
format
(
p
.
package
)
+
"
\n
"
)
self
.
fix_reinstall
(
need_reinstall
)
_
(
"Missing: - {} : Needed by: - {}"
)
.
format
(
p
.
package
,
pkg
)
+
"
\n
"
)
if
self
.
options
.
force
:
for
pkg
in
installed
:
pkgname
=
pkg
...
...
@@ -91,4 +91,4 @@ Usage: check-relation
need_reinstall
.
append
(
pkg
)
sys
.
stderr
.
write
(
_
(
"Missing: /{} - {}"
)
.
format
(
f
.
path
,
pkg
)
+
"
\n
"
)
self
.
fix_reinstall
(
need_reinstall
)
self
.
fix_reinstall
(
need_reinstall
)
inary/fetcher.py
Dosyayı görüntüle @
cdea4c03
...
...
@@ -269,7 +269,7 @@ class Fetcher:
c
.
close
()
def
_get_wget
(
self
):
return
os
.
system
(
"
timeout
\"
{}
\"
busybox wget -c --user-agent
\"
{}
\"
\"
{}
\"
-O
\"
{}
\"
2>&1"
.
format
(
self
.
timeout
,
self
.
useragent
,
self
.
url
.
get_uri
(),
self
.
partial_file
))
return
os
.
system
(
"
busybox wget -c --user-agent
\"
{}
\"
\"
{}
\"
-O
\"
{}
\"
2>&1"
.
format
(
self
.
useragent
,
self
.
url
.
get_uri
(),
self
.
partial_file
))
def
_get_requests
(
self
):
from
requests
import
get
...
...
inary/operations/build.py
Dosyayı görüntüle @
cdea4c03
...
...
@@ -703,9 +703,16 @@ class Builder:
"""Returns the real path of WorkDir for an unpacked archive."""
dirname
=
self
.
get_action_variable
(
"WorkDir"
,
""
)
src_list
=
os
.
listdir
(
self
.
pkg_work_dir
())
if
"inaryBuildState"
in
src_list
:
src_list
.
remove
(
"inaryBuildState"
)
if
dirname
==
""
:
dirname
=
self
.
spec
.
source
.
name
+
"-"
+
self
.
spec
.
getSourceVersion
()
if
len
(
src_list
)
==
1
:
dirname
=
src_list
[
0
]
else
:
dirname
=
self
.
spec
.
source
.
name
+
"-"
+
self
.
spec
.
getSourceVersion
()
src_dir
=
util
.
join_path
(
self
.
pkg_work_dir
(),
dirname
)
ctx
.
ui
.
info
(
_
(
"WorkDir:{}"
.
format
(
src_dir
)))
if
not
os
.
path
.
exists
(
src_dir
):
util
.
ensure_dirs
(
src_dir
)
...
...
scripts/sulinstrapt
Dosyayı görüntüle @
cdea4c03
...
...
@@ -31,12 +31,11 @@ if echo $2 | grep "^-" &>/dev/null ; then
echo
$2
|
grep
"n"
&&
inary it NetworkManager
-y
--ignore-configure
-D
$sulin
echo
$2
|
grep
"a"
&&
inary it curl nano wget vim strace ntfsprogs tree dialog pfork scom htop
-y
--ignore-configure
-D
$sulin
fi
if
[
!
-d
$sulin
/proc/sys/kernel
]
;
then
for
i
in
/dev /sys /proc /run
do
mkdir
-p
$sulin
/
$i
&>/dev/null
mount
--bind
$i
$sulin
/
$i
done
fi
for
i
in
/dev /sys /proc /run
do
mkdir
-p
$sulin
/
$i
&>/dev/null
umount
-lf
-R
$sulin
/
$i
||
true
mount
--bind
$i
$sulin
/
$i
done
chroot
$sulin
inary
cp
baselayout
chroot
$sulin
inary
cp
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