* Remove conflicting package of system.base if answered yes. (#3481)
Emniyet mandalı: taban sistem system.base'den bu paketler yükseltilecek:coreutils util-linux glibc Aşağıdaki paketlerde çakışmalar bulunuyor: [coreutils: hashalot ile çakışıyor] Bu çakışan paketler kaldırılsın mı? (evet/hayır)e Bağımlılıkları sağlamak için bu paketler verilen sırada kaldırılacaktır: hashalot hashalot paketi kaldırılıyor Paket kaldırılmak üzere yapılandırılıyor hashalot paketi kaldırıldı Bu paketler yükseltilecektir: coreutils glibc util-linux Paketlerin toplam boyu: 4.00 KB
This commit is contained in:
+3
-3
@@ -246,7 +246,7 @@ def check_conflicts(order, packagedb):
|
|||||||
if not ctx.ui.confirm(_('Remove the following conflicting packages?')):
|
if not ctx.ui.confirm(_('Remove the following conflicting packages?')):
|
||||||
raise Error(_("Conflicts remain"))
|
raise Error(_("Conflicts remain"))
|
||||||
|
|
||||||
if remove(list(C), True) == False:
|
if remove(list(C), ignore_dep=True, bypass_safety=True) == False:
|
||||||
raise Error(_("Conflicts remain"))
|
raise Error(_("Conflicts remain"))
|
||||||
|
|
||||||
def expand_components(A):
|
def expand_components(A):
|
||||||
@@ -550,7 +550,7 @@ def plan_upgrade(A, ignore_build = False):
|
|||||||
check_conflicts(order, ctx.packagedb)
|
check_conflicts(order, ctx.packagedb)
|
||||||
return G_f, order
|
return G_f, order
|
||||||
|
|
||||||
def remove(A, ignore_dep = None):
|
def remove(A, ignore_dep = False, bypass_safety = False):
|
||||||
"""remove set A of packages from system (A is a list of package names)"""
|
"""remove set A of packages from system (A is a list of package names)"""
|
||||||
|
|
||||||
A = [str(x) for x in A]
|
A = [str(x) for x in A]
|
||||||
@@ -558,7 +558,7 @@ def remove(A, ignore_dep = None):
|
|||||||
# filter packages that are not installed
|
# filter packages that are not installed
|
||||||
A_0 = A = expand_components(set(A))
|
A_0 = A = expand_components(set(A))
|
||||||
|
|
||||||
if not ctx.get_option('bypass_safety'):
|
if not ctx.get_option('bypass_safety') and not bypass_safety:
|
||||||
if ctx.componentdb.has_component('system.base'):
|
if ctx.componentdb.has_component('system.base'):
|
||||||
systembase = set(ctx.componentdb.get_union_comp('system.base').packages)
|
systembase = set(ctx.componentdb.get_union_comp('system.base').packages)
|
||||||
refused = A.intersection(systembase)
|
refused = A.intersection(systembase)
|
||||||
|
|||||||
Reference in New Issue
Block a user