On 30/10/10 16:19, Allan McRae wrote:
On 30/10/10 16:03, Allan McRae wrote:
Whenever depends is needed from the local db, so is desc. The only disadvantage to merging them is the additional time taken to read the depends entries when they are not needed. As depends is in general relatively small, the additional time taken to read it in will be negligable. Also, merging these files will speed up local database access due to less file seeks.
Of course this is going to need a nice post_install script for the next major pacman release... or now for those of us using the git version once this is pushed.
I'm testing one out now.
Here it goes: -- start -- DBPATH=/var/lib/pacman/local for i in $DBPATH/*; do if [[ -f $i/depends ]]; then cat $i/depends >> $i/desc rm $i/depends fi done -- end -- If you are going to test these patches before they are accepted to master, I suggest you copy your local db elsewhere and change DBPATH in that script. Then you can use pacman with --dbpath (but do not do anything that modifies the local db...) Allan