[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg-scanpackages and pools - (how) does it work?



On Sun, Mar 21, 2004 at 08:54:44PM +0000, W. Borgert wrote:
> if I have a pool of own packages (i.e. one directory with
> different versions of the same package), how do I create the
> correct Packages.gz?  

There are tools to do this, but i use a quick script just for the
{Packages,Sources}.gz generation.

<snip>
[ -d pool/main ] && PKGDEBMAIN=`find pool/main -type d -maxdepth 4 -mindepth
 2 -print | uniq`

for PDEBMAIN in ${PKGDEBMAIN}; do
            if [ -d "${PDEBMAIN}" ]; then
                dpkg-scanpackages ${PDEBMAIN} /dev/null | gzip -9c >> dists/stab
le/main/binary-i386/Packages.gz
                dpkg-scansources ${PDEBMAIN} /dev/null | gzip -9c >> dists/stabl
e/main/source/Sources.gz
            fi
    done
</snip>

Hope this helps. All bugs are copyrighted by me :)

-- 

Rene Cunningham
DCLabs Pty Ltd
http://www.dclabs.com.au
----------------------------------------
The idle mind knows not what it is it wants.
		-- Quintus Ennius



Reply to: