From 655f833be4a8d2bd110bd3c0caa2fc17af119988 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 26 Sep 2010 16:36:02 +0000 Subject: Add test that devices.tar.gz not be somehow empty. Closes: #598080 r64849 --- Makefile | 4 ++++ debian/changelog | 1 + 2 files changed, 5 insertions(+) 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 Mon, 20 Sep 2010 13:22:56 -0400 -- cgit v0.12