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
18c7be9b
Kaydet (Commit)
18c7be9b
authored
Haz 30, 2020
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge branch 'patch-41846' into 'develop'
Patch 41846 See merge request sulinos/devel/inary!25
üst
4b11222c
9900f487
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
history.py
inary/operations/history.py
+4
-3
No files found.
inary/operations/history.py
Dosyayı görüntüle @
18c7be9b
...
...
@@ -54,7 +54,7 @@ def __listactions(actions):
if
__pkg_already_installed
(
pkg
,
pkginfo
):
continue
beinstalled
.
append
(
"{0}-{1}"
.
format
(
pkg
,
pkginfo
))
configs
.
append
(
pkg
,
operation
)
configs
.
append
(
[
pkg
,
operation
]
)
else
:
if
installdb
.
has_package
(
pkg
):
beremoved
.
append
(
"{}"
.
format
(
pkg
))
...
...
@@ -213,6 +213,7 @@ def takeback(operation):
if
not
beinstalled
and
not
beremoved
:
ctx
.
ui
.
info
(
_
(
"There is no packages to taking back (installing or removing)."
))
return
if
beinstalled
:
ctx
.
ui
.
info
(
...
...
@@ -230,8 +231,8 @@ def takeback(operation):
errors
=
[]
paths
=
[]
lndig
=
math
.
floor
(
math
.
log
(
len
(
beinstalled
),
10
))
+
1
for
pkg
in
beinstalled
:
lndig
=
math
.
floor
(
math
.
log
(
len
(
beinstalled
),
10
))
+
1
ctx
.
ui
.
info
(
_
(
"Downloading"
)
+
str
(
" [ {:>"
+
str
(
lndig
)
+
...
...
@@ -297,5 +298,5 @@ def snapshot():
ctx
.
ui
.
display_progress
(
operation
=
"snapshot"
,
percent
=
progress
.
update
(
processed
),
info
=
_
(
"Taking snapshot of the system."
))
ctx
.
ui
.
info
(
""
)
historydb
.
update_history
()
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