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

[PATCH] Please detect (too) partial svn checkouts



Hi,

during my recent rebuilds, using fresh chroots and checkouts, I only
checked the build/ directory out (yeah, docs say what to do, but I
suppose a bad copy/paste, in a hurry to test the new udebs, or
whatever other lame excuse), and I ran into:
| Download complete and in download only mode
| dh_testroot
| cd .. && dpkg-checkbuilddeps
| dpkg-checkbuilddeps: error: cannot read debian/control: No such file or directory

With the attached patch, that'd be this instead:
| Download complete and in download only mode
| [ -d ../debian ] || { echo '../debian not found, did you try to only check build/ out? installer/build is needed.'; false; }
| ../debian not found, did you try to only check build/ out? installer/build is needed.
| make[3]: *** [stamps/tree-unpack-netboot-gtk-stamp] Error 1

A pointer to the d-i internals manual could be added or used instead
(chapter 4 might mention the svn URL and the directory to fetch?),
whatever works for you.

Mraw,
KiBi.
--- Makefile	(revision 62665)
+++ Makefile	(working copy)
@@ -282,6 +282,7 @@
 
 # The general tree target.
 $(STAMPS)tree-unpack-$(targetstring)-stamp: $(STAMPS)get_udebs-$(targetstring)-stamp
+	[ -d ../debian ] || { echo '../debian not found, did you try to only check build/ out? installer/build is needed.'; false; }
 	dh_testroot
 	cd .. && dpkg-checkbuilddeps
 	@rm -f $@

Attachment: signature.asc
Description: Digital signature


Reply to: