summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJoey Hess <joeyh@debian.org>2010-09-26 16:36:02 (GMT)
committerJoey Hess <joeyh@debian.org>2010-09-26 16:36:02 (GMT)
commit655f833be4a8d2bd110bd3c0caa2fc17af119988 (patch)
treea7e7e5dbf4bd96424d93582bc5fe9e51ba2a3502 /Makefile
parentdc3391757941489b957c632459975b5e6a5192d7 (diff)
downloaddebootstrap-655f833be4a8d2bd110bd3c0caa2fc17af119988.zip
debootstrap-655f833be4a8d2bd110bd3c0caa2fc17af119988.tar.gz
debootstrap-655f833be4a8d2bd110bd3c0caa2fc17af119988.tar.bz2
Add test that devices.tar.gz not be somehow empty. Closes: #598080
r64849
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 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