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
4bfdda56
Kaydet (Commit)
4bfdda56
authored
Agu 05, 2021
tarafından
Ali Rıza KESKİN
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
config file update for yes all
üst
db9d70bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
helper.py
inary/operations/helper.py
+13
-10
No files found.
inary/operations/helper.py
Dosyayı görüntüle @
4bfdda56
...
...
@@ -269,23 +269,26 @@ def show_changed_configs(package_dict, opt):
color
=
'yellow'
)
os
.
system
(
"diff -u {0} {1} | less"
.
format
(
new_file
,
file
))
prompt
=
ctx
.
ui
.
choose
(
_
(
"[?] Select the process which will be happened:"
),
[
_
(
"1. Store new config file, not apply [*]"
),
_
(
"2. Apply new config file (keep old config)"
),
_
(
"3. Apply new config file (don't keep old config)"
),
_
(
"4. Delete new config file"
)])
if
prompt
==
_
(
"1. Store new config file, not apply [*]"
):
ctx
.
ui
.
info
(
_
(
"[?] Select the process which will be happened:"
))
ctx
.
ui
.
info
(
_
(
"1. Store new config file, not apply [*]"
))
ctx
.
ui
.
info
(
_
(
"2. Apply new config file (keep old config)"
))
ctx
.
ui
.
info
(
_
(
"3. Apply new config file (don't keep old config)"
)
ctx
.
ui
.
info
(
_
(
"4. Delete new config file"
))
if
ctx
.
config
.
options
and
ctx
.
config
.
options
.
yes_all
:
prompt
=
"1"
else
:
prompt
=
subprocess
.
getoutput
(
"read -n 1 c ; echo $c"
)
if
prompt
==
"1"
pass
elif
p
rompt
==
_
(
"2. Apply new config file (keep old config)"
):
elif
p
prompt
==
"2"
apply_changed_config
(
util
.
join_path
(
ctx
.
config
.
dest_dir
(),
file
),
new_file
,
keep
=
True
)
elif
p
rompt
==
_
(
"3. Apply new config file (don't keep old config)"
):
elif
p
prompt
==
"3"
apply_changed_config
(
util
.
join_path
(
ctx
.
config
.
dest_dir
(),
...
...
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