* 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:
Faik Uygur
2006-08-25 12:04:54 +00:00
parent 8d60cea4c6
commit 0c75c29ffa
+3 -3
View File
@@ -246,7 +246,7 @@ def check_conflicts(order, packagedb):
if not ctx.ui.confirm(_('Remove the following conflicting packages?')):
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"))
def expand_components(A):
@@ -550,7 +550,7 @@ def plan_upgrade(A, ignore_build = False):
check_conflicts(order, ctx.packagedb)
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)"""
A = [str(x) for x in A]
@@ -558,7 +558,7 @@ def remove(A, ignore_dep = None):
# filter packages that are not installed
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'):
systembase = set(ctx.componentdb.get_union_comp('system.base').packages)
refused = A.intersection(systembase)