Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
sort packages in package_state plugin by installation order
To ease debugging and comparasion of two runs
  • Loading branch information
xsuchy authored and praiskup committed Aug 23, 2023
1 parent 5ecbd67 commit 1369e5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mock/py/mockbuild/plugins/package_state.py
Expand Up @@ -53,10 +53,10 @@ def _availablePostYumHook(self):
out_file = self.buildroot.resultdir + '/available_pkgs.log'
chrootpath = self.buildroot.make_chroot_path()
if self.buildroot.config['package_manager'] in ['dnf', 'microdnf']:
cmd = "/usr/bin/dnf --installroot={0} repoquery -c {0}/etc/dnf/dnf.conf {1} > {2}".format(
cmd = "/usr/bin/dnf --installroot={0} repoquery -c {0}/etc/dnf/dnf.conf {1} | sort > {2}".format(
chrootpath, repoquery_avail_opts, out_file)
else:
cmd = "/usr/bin/repoquery --installroot={0} -c {0}/etc/yum.conf {1} > {2}".format(
cmd = "/usr/bin/repoquery --installroot={0} -c {0}/etc/yum.conf {1} | sort > {2}".format(
chrootpath, repoquery_avail_opts, out_file)
mockbuild.util.do(cmd, shell=True, env=self.buildroot.env)
self.avail_done = True
Expand Down

0 comments on commit 1369e5d

Please sign in to comment.