summaryrefslogtreecommitdiff
path: root/morphlib/morph2.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-09-25 16:53:50 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2013-09-26 11:20:31 +0000
commit6a216934edb2423c9aa347329ea029041927a413 (patch)
tree770aa37c3104f3396dbad2336dcdb5c5b6d9ee6f /morphlib/morph2.py
parent3d93d272079b602aefe5d3bcd660d4a3307f3aad (diff)
downloadmorph-6a216934edb2423c9aa347329ea029041927a413.tar.gz
Allow building with null repo/ref
Diffstat (limited to 'morphlib/morph2.py')
-rw-r--r--morphlib/morph2.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/morph2.py b/morphlib/morph2.py
index a733ce77..6975e699 100644
--- a/morphlib/morph2.py
+++ b/morphlib/morph2.py
@@ -252,7 +252,8 @@ class Morphology(object):
continue
value = self._apply_changes_for_key(key, live_dict, original_dict)
- if value is not None:
+ # VILE HACK to preserve nulls in repo/ref fields
+ if value is not None or key in ('repo', 'ref'):
output_dict[key] = value
return output_dict