From 6cba51fa551e637ee8e8a4bb33d3c9750e274c57 Mon Sep 17 00:00:00 2001
From: "Adam D. Barratt" <adam@adam-barratt.org.uk>
Date: Sun, 28 Feb 2010 14:44:37 +0000
Subject: [PATCH] Print a warning if there are no unblock{,-udeb} hints

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
---
 britney.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/britney.py b/britney.py
index d94a173..ce21995 100755
--- a/britney.py
+++ b/britney.py
@@ -794,6 +794,10 @@ class Britney:
                 z[a] = b
             hints[x] = z
 
+        # Sanity check the hints hash
+        if len(hints["block"]) == 0 and len(hints["block-udeb"]) == 0:
+            self.__log("WARNING: No block hints at all, not even udeb ones!", type="W")
+
         return hints
 
     def write_heidi(self, filename):