Hi again, a small script to make this easier. Notice that you must init the repo specifying the architecture, you want to work on. This should answer your question.
I'm not sure about '-b --arch=all' :) p ----------------------- #!/bin/bash # Wed Mar 31 2010 Pietro Abate <pietro.ab...@pps.jussieu.fr> TMPAPT=$TMP/fakeapt function init() { mkdir -p $TMPAPT/{archives,lists}/partial cp $1 $TMPAPT/lists/Packages touch $TMPAPT/status cat > $TMPAPT/apt.conf <<EOF APT::Architecture "$2"; APT::Get::List-Cleanup "false"; Dir::Cache $TMPAPT; Dir::State $TMPAPT; Dir::State::status $TMPAPT/status; Dir::Etc::SourceList $TMPAPT/sources.list; EOF cat > $TMPAPT/sources.list <<EOF deb file:$TMPAPT/lists/ ./ EOF APT_CONFIG=$TMPAPT/apt.conf apt-get update } function debtree() { APT_CONFIG=$TMPAPT/apt.conf /usr/bin/debtree $@ } case "$1" in init) init $3 $2 ;; *) debtree $@ ;; esac ------------------------- On Wed, Mar 10, 2010 at 07:23:19PM +0100, Frans Pop wrote: > On Wednesday 10 March 2010, Pietro Abate wrote: > > setting APT_CONFIG is the way to go. No need to modify debtree... > > > > APT_CONFIG=apt.conf apt-get update > > APT_CONFIG=apt.conf debtree dpkg > > Thanks for your info. I think we should keep the BR open until this has > been documented, for example in a README.Debian. > > I suspect that it may not work correctly for '-b --arch=all' (as that uses > apt-cache instead of the apt database). I'll have to test that. > > I'll give the recipe you gave in your previous mail a try and then work > something out. If I have any questions I'll get back to you. > > Another question could be: does this also allow to make graphs for other > architectures? For example, create a graph for arm on an i386 host. > I guess that as long as you copy Packages and Sources files (instead of > using a sources.list) it could work. > APT could have internal checks against the current arch. But possibly > setting "APT::Architecture" would fix that. > > Cheers, > FJP -- ---- http://en.wikipedia.org/wiki/Posting_style -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org