summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--debian/changelog1
2 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ff4ff3a..b2afaaa 100644
--- a/Makefile
+++ b/Makefile
@@ -29,4 +29,8 @@ devices.tar.gz:
chmod 755 dev
(cd dev && $(MAKEDEV) std ptmx fd consoleonly)
tar cf - dev | gzip -9 >devices.tar.gz
+ @if [ "$$(tar tvf devices.tar.gz | wc -l)" -lt 2 ]; then \
+ echo " ** devices.tar.gz is empty!" >&2; \
+ exit 1; \
+ fi
rm -rf dev
diff --git a/debian/changelog b/debian/changelog
index 7a6328e..922febb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
debootstrap (1.0.25) UNRELEASED; urgency=low
* Remove debug statement that slipped in.
+ * Add test that devices.tar.gz not be somehow empty. Closes: #598080
-- Joey Hess <joeyh@debian.org> Mon, 20 Sep 2010 13:22:56 -0400