summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAnatol Pomozov <anatol.pomozov@gmail.com>2020-01-30 06:27:10 +0100
committerAllan McRae <allan@archlinux.org>2020-01-30 15:38:36 +0100
commit886a6677a847a5b7fdc1e44240f90cc81d91b9ad (patch)
tree2f02657317056fb08c61c5e2c6b6e213f2042cb1 /scripts
parentd0c487d4dcc6fec6f4bd8e1cefa1de9ffbe0e460 (diff)
downloadpacman-886a6677a847a5b7fdc1e44240f90cc81d91b9ad.tar.gz
pacman-886a6677a847a5b7fdc1e44240f90cc81d91b9ad.tar.xz
Eliminate extra loop over dbs_sync
Current flow looks like loop dbs_sync { loop pkgs { if pkg.db == db then process(pkg, db) } } Package sync transaction always has a counterpart in the dbs_sync list (I cannot come up with a use-case when it is not true). So the loop can be simplified to: loop pkgs { process(pkg, pkg.db) } Tested: 'ninja test' & manually by using pacman with this patch for a week Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions