From 956a0a2e73fc8f06e289788c22ed3f8ed574fb65 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 11 Mar 2015 15:38:34 +0000 Subject: Print warning message for non-sha1 chunk refs. --- morphlib/morphloader.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/morphlib/morphloader.py b/morphlib/morphloader.py index 7d51dc1e..a29e60bf 100644 --- a/morphlib/morphloader.py +++ b/morphlib/morphloader.py @@ -529,6 +529,9 @@ class MorphologyLoader(object): elif not isinstance(ref, basestring): raise ChunkSpecRefNotStringError( ref, spec.get('alias', spec['name']), morph.filename) + elif not morphlib.git.is_valid_sha1(ref): + warnings.warn('Chunk "{}" has non-sha1 ref: "{}"\n' + .format(spec['name'], ref)) # Require build-dependencies for the stratum itself, unless # it has chunks built in bootstrap mode. -- cgit v1.2.1