On Sun, Jan 10, 2010 at 9:44 AM, Allan McRae <[email protected]> wrote: > Eric Bélanger wrote: >> >> On Sun, Jan 10, 2010 at 7:03 AM, Allan McRae <[email protected]> wrote: >>> >>> Jan de Groot wrote: >>>> >>>> On Sun, 2010-01-10 at 21:43 +1000, Allan McRae wrote: >>>>> >>>>> > sudo checkpkg >>>>> Password: >>>>> 18,19c18,19 >>>>> < usr/lib/libjpeg.so.7 >>>>> < usr/lib/libjpeg.so.7.0.0 >>>>> --- >>>>> > usr/lib/libjpeg.so.8 >>>>> > usr/lib/libjpeg.so.8.0.0 >>>>> usr/lib/libjpeg.so.8: SONAME libjpeg.so.8 >>>>> usr/lib/libjpeg.so.8.0.0: SONAME libjpeg.so.8 >>>>> >>>>> This should overlap a lot. Do we want to do both at once? >>>> >>>> I think that's a good thing to do. Could you build a todo list for >>>> libjpeg also? >>> >>> I haven't rsynced my packages in several weeks and I never do [community] >>> so >>> perhaps Pierre can do this for me... >>> >>>> BTW: checkpkg works as non-root also now, pacman -Sp works as non-root. >>> >>> Awesome. It would be even better if it tried getting the package out of >>> the >>> pacman cache first. Someone please implement it for me! :D >>> >> >> I tought I implemented it already: >> >> http://projects.archlinux.org/devtools.git/commit/?id=61e8cd97fb01997859b135dc0741beff7911c6f5 >> >> That commit should be in the last devtools release. >> > > That is $PKGDEST which is not necessary the pacman cache. >
Yes. right. But it can be easily implemented. In checkpkg, get the pacman cache from pacman.conf with a: CacheDir=$(grep '^CacheDir=' /etc/pacman.conf | cut -d= -f2) then add another if check at the end of my above commit: elif [ -f $CacheDir/$oldpkg ]; then cp $CacheDir/$oldpkg . Feel free to test and make a patch.

