Re: Fix error message from tools/sort_deps
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.
>diff --git a/Makefile b/Makefile
>index e8f92a7..8bb72b2 100755
>@@ -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. email@example.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