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
8e6a9633
Kaydet (Commit)
8e6a9633
authored
Kas 07, 2020
tarafından
Your Name
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fakeroot integration
üst
914bafa9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
build.py
inary/operations/build.py
+8
-2
No files found.
inary/operations/build.py
Dosyayı görüntüle @
8e6a9633
...
...
@@ -286,6 +286,9 @@ class Builder:
self
.
has_icecream
=
False
self
.
variable_buffer
=
{}
self
.
destdir
=
os
.
getcwd
()
if
os
.
getuid
()
!=
0
:
if
os
.
system
(
"fakeroot --version &>/dev/null"
)
==
0
:
os
.
environ
[
'USER'
]
=
"root"
def
set_spec_file
(
self
,
specuri
):
if
not
specuri
.
is_remote_file
():
...
...
@@ -751,6 +754,7 @@ class Builder:
# we'll need our working directory after actionscript
# finished its work in the archive source directory.
curDir
=
os
.
getcwd
()
command
=
""
self
.
specdiruri
=
os
.
path
.
dirname
(
self
.
specuri
.
get_uri
())
pkgname
=
os
.
path
.
basename
(
self
.
specdiruri
)
self
.
destdir
=
util
.
join_path
(
ctx
.
config
.
tmp_dir
(),
pkgname
)
...
...
@@ -762,13 +766,15 @@ class Builder:
os
.
environ
[
'CURDIR'
]
=
curDir
os
.
environ
[
'SRCDIR'
]
=
self
.
pkg_work_dir
()
os
.
environ
[
'OPERATION'
]
=
func
if
os
.
getuid
()
!=
0
:
if
os
.
system
(
"fakeroot --version &>/dev/null"
)
==
0
:
command
+=
"fakeroot "
if
os
.
path
.
exists
(
src_dir
):
os
.
chdir
(
src_dir
)
else
:
raise
Error
(
_
(
"ERROR: WorkDir ({}) does not exist
\n
"
)
.
format
(
src_dir
))
if
os
.
system
(
'python3 -c
\'
import sys
\n
sys.path.append("{1}")
\n
import actions
\n
if(hasattr(actions,"{0}")): actions.{0}()
\'
'
.
format
(
func
,
curDir
)):
if
os
.
system
(
command
+
'python3 -c
\'
import sys
\n
sys.path.append("{1}")
\n
import actions
\n
if(hasattr(actions,"{0}")): actions.{0}()
\'
'
.
format
(
func
,
curDir
)):
raise
Error
(
_
(
"unable to call function from actions:
\'
{}
\'
"
)
.
format
(
func
))
os
.
chdir
(
curDir
)
...
...
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