Skip to content

Commit

Permalink
pisi: Use the same reordering logic in Python2 as in Python3
Browse files Browse the repository at this point in the history
Swap the `reorder_base_packages` functions to make the logic the same in Python2 and Python3.
  • Loading branch information
silkeh committed Sep 11, 2024
1 parent a7037f9 commit 8fd1377
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pisi/operations/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
import pisi.conflict
import pisi.db

def reorder_base_packages(order):

def reorder_base_packages_old(order):
componentdb = pisi.db.componentdb.ComponentDB()

"""system.base packages must be first in order"""
Expand All @@ -44,7 +43,7 @@ def reorder_base_packages(order):
ctx.ui.info(_("install_order: %s" % install_order))
return install_order

def reorder_base_packages_dummy(order):
def reorder_base_packages(order):
"""Dummy function that doesn't actually re-order system.base in front.
We now use OrderedSets, which keep the original topological sort,
Expand Down

0 comments on commit 8fd1377

Please sign in to comment.