1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-03-01 09:51:50 -05:00
Xavier Chantry f671147282 Fix rewinddir regression by cleaning up db_scan
Commit 046003844739416ff6d168dd2dec76490adb0727 caused a regression when
rereading the pkgcache after updating the on-disk databases. A rewinddir
call was errantly removed.

Instead of replacing the call to rewindir, clean up this whole mess.
db_scan is used only once and with target == NULL so there was actually half
the code of db_scan which was unused. This is gone now and replaced by a
single new db_populate function.

Dan: add_sorted ended up being 3x slower than one msort at the end, so I
changed back to that. I also made one pointer variable const and merged this
whole patch with my original fix for the rewinddir issue.

Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
2008-05-13 18:44:13 -05:00
..
2008-03-09 12:03:54 -05:00
2008-05-13 15:49:02 -05:00
2008-01-27 11:54:25 -06:00
2008-04-26 11:36:01 -05:00
2008-04-26 11:36:01 -05:00
2008-04-10 20:53:28 -05:00
2008-04-26 11:36:01 -05:00
2008-05-08 20:59:18 -05:00
2008-05-08 20:59:18 -05:00
2008-01-27 12:05:33 -06:00
2008-03-10 18:57:36 -05:00