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
3e3f83fb
Kaydet (Commit)
3e3f83fb
authored
Ara 23, 2018
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
gid ve uid tanımlama hataları düzeltildi.
üst
2aaec287
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
19 deletions
+14
-19
inarytools.py
inary/actionsapi/inarytools.py
+1
-1
build.py
inary/operations/build.py
+13
-18
No files found.
inary/actionsapi/inarytools.py
Dosyayı görüntüle @
3e3f83fb
...
...
@@ -302,7 +302,7 @@ def dosym(sourceFile, destinationFile):
makedirs
(
join_path
(
get
.
installDIR
(),
os
.
path
.
dirname
(
destinationFile
)))
try
:
os
.
symlink
(
join_path
(
get
.
installDIR
(),
sourceFile
)
,
join_path
(
get
.
installDIR
()
,
destinationFile
))
os
.
symlink
(
sourceFile
,
join_path
(
get
.
installDIR
()
,
destinationFile
))
except
OSError
:
error
(
_
(
'ActionsAPI [dosym]: File already exists: {}'
)
.
format
(
destinationFile
))
...
...
inary/operations/build.py
Dosyayı görüntüle @
3e3f83fb
...
...
@@ -988,26 +988,21 @@ class Builder:
# FIXME: Better way?
if
frpath
==
util
.
removepathprefix
(
"/"
,
afile
.
target
):
# This is an additional file, uid and gid will change
if
afile
.
owner
:
try
:
_uid
=
str
(
pwd
.
getpwnam
(
afile
.
owner
)[
2
])
except
KeyError
:
ctx
.
ui
.
warning
(
_
(
"No user named '
%
s' found "
if
afile
.
owner
is
None
:
afile
.
owner
=
"root"
if
afile
.
group
is
None
:
afile
.
group
=
"root"
try
:
_uid
=
str
(
pwd
.
getpwnam
(
afile
.
owner
)[
2
])
except
KeyError
:
ctx
.
ui
.
warning
(
_
(
"No user named '
%
s' found "
"on the system"
)
%
afile
.
owner
)
if
afile
.
group
:
try
:
_gid
=
str
(
grp
.
getgrnam
(
afile
.
group
)[
2
])
except
KeyError
:
ctx
.
ui
.
warning
(
_
(
"No group named '
%
s' found "
try
:
_gid
=
str
(
grp
.
getgrnam
(
afile
.
group
)[
2
])
except
KeyError
:
ctx
.
ui
.
warning
(
_
(
"No group named '
%
s' found "
"on the system"
)
%
afile
.
group
)
else
:
try
:
# Assume owner == root if no group is given
_gid
=
str
(
grp
.
getgrnam
(
afile
.
owner
)[
2
])
except
KeyError
:
ctx
.
ui
.
warning
(
_
(
"No group named '
%
s' (value "
"guessed from owner) found "
"on the system"
)
%
afile
.
owner
)
break
d
[
frpath
]
=
Files
.
FileInfo
(
path
=
frpath
,
type
=
ftype
,
permanent
=
permanent
,
size
=
fsize
,
hash
=
fhash
,
uid
=
_uid
,
gid
=
_gid
,
...
...
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