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

Re: Fix error message from tools/sort_deps

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
--- 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; \
 		if [ $$ARCH = "source" -o "$(INSTALLER_CD)" = "1" -o "$(INSTALLER_CD)" = "2" ];then \
 			:> $(ADIR)/$(CODENAME)-$$ARCH/status ; \
 		else \
diff --git a/debian/changelog b/debian/changelog
index 33f05ff..13047ec 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -24,6 +24,7 @@ debian-cd (3.1.3) UNRELEASED; urgency=low
     packages or D-I components relative to a regular image.
   * Add variant to create i386/amd64 images that support installing Xen guests.
   * Recognise and ignore Enhances: lines.
+  * Create apt/preferences.d in APTTMP, keeps newer apt from printing a warning. 
   [ Raphaël Hertzog ]
   * Fallback looking for syslinux/silo/yaboot in $CODENAME when $DI_CODENAME

Attachment: signature.asc
Description: This is a digitally signed message part

Reply to: