Make sure sources are present when creating source packages
authorKalle Vahlman <kalle.vahlman@movial.com>
Thu, 14 May 2009 07:32:42 +0000 (10:32 +0300)
committerKalle Vahlman <kalle.vahlman@movial.com>
Thu, 14 May 2009 07:32:42 +0000 (10:32 +0300)
matrix/matrix.py

index 8a4c5f5..78e10e1 100644 (file)
@@ -336,6 +336,9 @@ def source_dist(targets):
 
        for name in targets:
                c = find_component(name)
+               # Can't dist sources if they don't exist
+               if not c.source.exists():
+                       c.source.clone()
                dist_changes(c, location)
                dist_sources(c, location)