summaryrefslogtreecommitdiff
path: root/pactest/tests/upgrade001.py
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2008-05-12 18:56:14 -0500
committerDan McGee <dan@archlinux.org>2008-05-13 18:44:13 -0500
commitf671147282e0f5c6a2e05c8cb7a0d5b72ef8cb61 (patch)
tree8327c79236e6eea95e929f3f6a37266f44f743e3 /pactest/tests/upgrade001.py
parentae5ef3b90fcad0627d450f0be6ea04dbea2019e2 (diff)
downloadpacman-f671147282e0f5c6a2e05c8cb7a0d5b72ef8cb61.tar.xz
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>
Diffstat (limited to 'pactest/tests/upgrade001.py')
0 files changed, 0 insertions, 0 deletions