On Sun, Aug 23, 2009 at 10:24:27AM +0100, Ian Campbell wrote: >The new apt seems to print lots of > W: Unable to read > /storage/mirror/tmp/apt/squeeze-powerpc/apt/preferences.d/ - FileExists (2: > No such file or directory) >when called by sort_deps. I guess the directory needs to be mkdir'd >somewhere. There does not really seem to be a good place to do this but >the patch below seems like as good a place as any. > >Ian. > >diff --git a/Makefile b/Makefile >index e8f92a7..8bb72b2 100755 >--- a/Makefile >+++ b/Makefile >@@ -191,6 +191,8 @@ $(ADIR)/status: > @echo "Generating a fake status file for apt-get and apt-cache..." > $(Q)for ARCH in $(ARCHES); do \ > mkdir -p $(ADIR)/$(CODENAME)-$$ARCH; \ >+ mkdir -p $(ADIR)/$(CODENAME)-$$ARCH/apt; \ >+ mkdir -p $(ADIR)/$(CODENAME)-$$ARCH/apt/preferences.d; \
As we're using -p, we only need to call mkdir for the deepest directory. I've modified to do that and applied. Thanks! -- Steve McIntyre, Cambridge, UK. st...@einval.com "...In the UNIX world, people tend to interpret `non-technical user' as meaning someone who's only ever written one device driver." -- Daniel Pead -- To UNSUBSCRIBE, email to debian-cd-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org