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
f8fd259f
Kaydet (Commit)
f8fd259f
authored
Agu 31, 2020
tarafından
frknkrc44
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bug fixes 42
üst
81e07499
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
removeorphaned.py
inary/cli/removeorphaned.py
+3
-1
remove.py
inary/operations/remove.py
+2
-2
No files found.
inary/cli/removeorphaned.py
Dosyayı görüntüle @
f8fd259f
...
...
@@ -57,13 +57,15 @@ Remove all orphaned packages from the system.
from
inary.operations
import
remove
self
.
init
()
orphaned
=
[
0
]
first
=
True
while
len
(
orphaned
)
>
1
:
orphaned
=
self
.
installdb
.
get_orphaned
()
if
ctx
.
get_option
(
'exclude'
):
orphaned
=
inary
.
blacklist
.
exclude
(
orphaned
,
ctx
.
get_option
(
'exclude'
))
remove
.
remove
(
orphaned
)
remove
.
remove
(
orphaned
,
confirm
=
first
)
first
=
False
if
not
self
.
options
.
ignore_sysconf
:
sysconf
.
proceed
(
self
.
options
.
force_sysconf
)
inary/operations/remove.py
Dosyayı görüntüle @
f8fd259f
...
...
@@ -32,7 +32,7 @@ _ = __trans.gettext
@util.locked
def
remove
(
A
,
ignore_dep
=
False
,
ignore_safety
=
False
):
def
remove
(
A
,
ignore_dep
=
False
,
ignore_safety
=
False
,
confirm
=
False
):
"""
Removes the given packages from the system
@param A: list of package names -> list_of_strings
...
...
@@ -98,7 +98,7 @@ def remove(A, ignore_dep=False, ignore_safety=False):
color
=
'cyan'
)
del
removal_size
,
symbol
if
len
(
order
)
>
len
(
A_0
):
if
confirm
and
len
(
order
)
>
len
(
A_0
):
if
not
ctx
.
ui
.
confirm
(
_
(
'Would you like to continue?'
)):
ctx
.
ui
.
warning
(
_
(
'Package removal declined.'
))
return
False
...
...
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