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

Re: local packages



Le Mon, Jun 26, 2000 at 09:02:53PM -0700, Joey Hess écrivait:
> I need to make a debian cd that has some locally built packages on it.
> It If use $MIRROR/dists/$CODENAME/local/binary-$ARCH/<section> like the
> debian-cd docs tell me to, will the local packages be in the Packages
> files and installable by apt?

Yes it should. If it doesn't then it's a bug.

There's no need for an override file since dpkg-scanpackages is called
with /dev/null :
|if [ -n "$LOCAL" ]; then
|        dpkg-scanpackages -m "`cat .disk/info`" \
|             dists/$CODENAME/local/binary-$ARCH \
|             /dev/null > $PREFIX.Packages-local
|fi

[ for other debian-cd readers and Steve in particular ]

BTW, I hope that the recent changes for the nonUS stuff didn't break the
local stuff... 
(i'm saying that because we're using code like :
        for i in $TDIR/$CODENAME-$ARCH/*.packages; do
                dir=${i%%.packages}
                n=${dir##$TDIR/$CODENAME-$ARCH/}
                if [ $n -le $NUM ]; then
                        cat $dir.Packages-local \
                            >>dists/$CODENAME/local/binary-$ARCH/Packages.cd
                        cat $dir.Packages-local | gzip --best \
                            >>dists/$CODENAME/local/binary-$ARCH/Packages.cd.gz
                fi
        done
 and I wonder what can happen when *.packages returns 1_NONUS.packages
 too ... doesn't look like 1_NONUS -le 2 is a valid numerical comparison
 ... looks like we have a couple of times this problem, should we use
 ?.packages instead of *.packages everywhere ? Steve ?)

And should I upload to frozen the latest debian-cd before we start the
new test cycle ? I think so ... but I'd lie that we take a rapid look at
this bug and check if we don't have the very same problem somewhere else
...

Cheers,
-- 
Raphaël Hertzog -+- http://strasbourg.linuxfr.org/~raphael/



Reply to: