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
d2fffc69
Kaydet (Commit)
d2fffc69
authored
May 13, 2020
tarafından
Ali Rıza KESKİN
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
artk destdir varsa trigger ve sysconf yaplmyor
üst
e3d2dbf2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
atomicoperations.py
inary/atomicoperations.py
+4
-4
helper.py
inary/operations/helper.py
+1
-1
sysconf.py
inary/sysconf.py
+3
-0
No files found.
inary/atomicoperations.py
Dosyayı görüntüle @
d2fffc69
...
...
@@ -306,7 +306,7 @@ class Install(AtomicOperation):
def
preinstall
(
self
):
if
(
'postOps'
in
self
.
metadata
.
package
.
isA
):
if
ctx
.
config
.
get_option
(
'ignore_configure'
):
if
ctx
.
config
.
get_option
(
'ignore_configure'
)
or
ctx
.
get_option
(
'destdir'
)
:
self
.
installdb
.
mark_pending
(
self
.
pkginfo
.
name
)
return
0
ctx
.
ui
.
info
(
_
(
'Pre-install configuration have been run for
\"
{}
\"
'
.
format
(
self
.
pkginfo
.
name
)),
color
=
'brightyellow'
)
...
...
@@ -328,7 +328,7 @@ class Install(AtomicOperation):
# os.chown(fpath, int(_file.uid), int(_file.gid))
if
(
'postOps'
in
self
.
metadata
.
package
.
isA
):
if
ctx
.
config
.
get_option
(
'ignore_configure'
):
if
ctx
.
config
.
get_option
(
'ignore_configure'
)
or
ctx
.
get_option
(
'destdir'
)
:
self
.
installdb
.
mark_pending
(
self
.
pkginfo
.
name
)
return
0
ctx
.
ui
.
info
(
_
(
'Configuring post-install
\"
{}
\"
'
.
format
(
self
.
pkginfo
.
name
)),
color
=
'brightyellow'
)
...
...
@@ -579,12 +579,12 @@ class Remove(AtomicOperation):
+
self
.
package_name
)
self
.
check_dependencies
()
if
not
ctx
.
config
.
get_option
(
'ignore_configure'
):
if
not
ctx
.
config
.
get_option
(
'ignore_configure'
)
or
ctx
.
get_option
(
'destdir'
)
:
self
.
run_preremove
()
for
fileinfo
in
self
.
files
.
list
:
self
.
remove_file
(
fileinfo
,
self
.
package_name
,
True
)
if
not
ctx
.
config
.
get_option
(
'ignore_configure'
):
if
not
ctx
.
config
.
get_option
(
'ignore_configure'
)
or
ctx
.
get_option
(
'destdir'
)
:
self
.
run_postremove
()
self
.
update_databases
()
...
...
inary/operations/helper.py
Dosyayı görüntüle @
d2fffc69
...
...
@@ -238,7 +238,7 @@ def show_changed_configs(package_dict, opt):
for
file
in
package_dict
[
package
]:
new_file
=
util
.
join_path
(
ctx
.
config
.
history_dir
(),
opt
,
package
,
ctx
.
config
.
dest_dir
(),
file
)
if
os
.
path
.
exist
(
new_file
):
if
os
.
path
.
exist
s
(
new_file
):
ctx
.
ui
.
info
(
_
(
"[*] Changes in config file: {}"
)
.
format
(
file
),
color
=
'yellow'
)
os
.
system
(
"diff -u {0} {1} | less"
.
format
(
new_file
,
file
))
prompt
=
ctx
.
ui
.
choose
(
_
(
"[?] Select the process which will be happened:"
),
...
...
inary/sysconf.py
Dosyayı görüntüle @
d2fffc69
...
...
@@ -16,6 +16,7 @@
import
os
import
sys
import
inary.context
as
ctx
# Gettext Library
import
gettext
...
...
@@ -69,6 +70,8 @@ def t_r(name, path, command):
def
proceed
(
force
=
False
):
if
ctx
.
get_option
(
'destdir'
):
return
sys
.
stdout
.
write
(
_
(
"Process triggering for sysconf.
\n
"
))
if
force
:
os
.
system
(
"rm -rf {}"
.
format
(
sysconfdir
))
...
...
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