[PATCH] Adjusted for mode option w/o preferences

Osamu Aoki osamu at debian.org
Tue Jul 29 16:08:15 UTC 2008


  Since I now provide no files for preferences, I updated
  build script not to error.
---
 Makefile |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 9b2ecdb..ce1dc32 100644
--- a/Makefile
+++ b/Makefile
@@ -104,8 +104,16 @@ install:
 	$(INSTALL_EXECUTABLE) pbuilder-satisfydepends-funcs $(DESTDIR)/usr/lib/pbuilder/
 	$(INSTALL_EXECUTABLE) pdebuild-internal $(DESTDIR)/usr/lib/pbuilder/
 	$(INSTALL_FILE) pbuilderrc $(DESTDIR)/usr/share/doc/pbuilder/examples
-	for x in $(SUPPORTEDMODE); do sed $(CONV) <mode/$$x/sources.list >$(DESTDIR)/usr/share/pbuilder/$$x/apt/sources.list ; done
-	for x in $(SUPPORTEDMODE); do sed $(CONV) <mode/$$x/preferences >$(DESTDIR)/usr/share/pbuilder/$$x/apt/preferences ; done
+	for x in $(SUPPORTEDMODE); do \
+	    if [ -f mode/$$x/sources.list ]; then \
+	        sed $(CONV) <mode/$$x/sources.list >$(DESTDIR)/usr/share/pbuilder/$$x/apt/sources.list ; \
+	    fi ; \
+	done
+	for x in $(SUPPORTEDMODE); do \
+	    if [ -f mode/$$x/preferences  ]; then \
+	        sed $(CONV) <mode/$$x/preferences  >$(DESTDIR)/usr/share/pbuilder/$$x/apt/preferences  ; \
+	    fi ; \
+	done
 	$(INSTALL_FILE) bash_completion.pbuilder $(DESTDIR)/etc/bash_completion.d/pbuilder
 	$(INSTALL_FILE) pbuilderrc $(DESTDIR)/usr/share/pbuilder
 	$(INSTALL_FILE) pbuilder-uml.conf $(DESTDIR)/etc/pbuilder
-- 
1.5.6.3


--HlL+5n6rz5pIUxbD--





More information about the Pbuilder-maint mailing list