* plan_install needs it. change name.

* plan_upgrade does not need it
This commit is contained in:
Faik Uygur
2006-10-27 21:23:25 +00:00
parent 62be8221b8
commit 5e0e730d1c
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -197,7 +197,7 @@ def package_graph(A, repo = pisi.itembyrepodb.installed, ignore_installed = Fals
def generate_install_order(A): def generate_install_order(A):
# returns the install order of the given install package list with any extra # returns the install order of the given install package list with any extra
# dependency that is also going to be installed # dependency that is also going to be installed
G_f, order = plan_install(A, ignore_conflicts = True) G_f, order = plan_install(A, ignore_package_conflicts = True)
return order return order
def generate_remove_order(A): def generate_remove_order(A):
@@ -209,7 +209,7 @@ def generate_remove_order(A):
def generate_upgrade_order(A): def generate_upgrade_order(A):
# returns the upgrade order of the given upgrade package list with any needed extra # returns the upgrade order of the given upgrade package list with any needed extra
# dependency # dependency
G_f, order = plan_upgrade(A, ignore_conflicts = True) G_f, order = plan_upgrade(A)
return order return order
def generate_base_upgrade(A): def generate_base_upgrade(A):
+3 -3
View File
@@ -361,7 +361,7 @@ def install_pkg_names(A, reinstall = False):
if 'pisi' in order and pisi_installed: if 'pisi' in order and pisi_installed:
upgrade_pisi() upgrade_pisi()
def plan_install_pkg_names(A, ignore_conflicts = False): def plan_install_pkg_names(A, ignore_package_conflicts = False):
# try to construct a pisi graph of packages to # try to construct a pisi graph of packages to
# install / reinstall # install / reinstall
@@ -389,7 +389,7 @@ def plan_install_pkg_names(A, ignore_conflicts = False):
G_f.write_graphviz(sys.stdout) G_f.write_graphviz(sys.stdout)
order = G_f.topological_sort() order = G_f.topological_sort()
order.reverse() order.reverse()
if not ctx.get_option('ignore_package_conflicts') and not ignore_conflicts: if not ctx.get_option('ignore_package_conflicts') and not ignore_package_conflicts:
conflicts = check_conflicts(order, ctx.packagedb) conflicts = check_conflicts(order, ctx.packagedb)
if conflicts: if conflicts:
remove_conflicting_packages(conflicts) remove_conflicting_packages(conflicts)
@@ -500,7 +500,7 @@ def upgrade_pkg_names(A = []):
if 'pisi' in order: if 'pisi' in order:
upgrade_pisi() upgrade_pisi()
def plan_upgrade(A, ignore_build = False, ignore_conflicts = False): def plan_upgrade(A, ignore_build = False):
# try to construct a pisi graph of packages to # try to construct a pisi graph of packages to
# install / reinstall # install / reinstall