Browse files

Raise error on missing local source

  • Loading branch information...
1 parent addc1e8 commit f6ea1fad637ac35d02f4446c1dbde65b3c5df5e0 @mhutch mhutch committed May 17, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 bockbuild/package.py
View
2 bockbuild/package.py
@@ -136,6 +136,8 @@ def get_cache_name (name):
self.cd (os.path.dirname (local_dest_file))
shutil.rmtree (local_dest_file, ignore_errors = True)
self.sh ('%' + '{git} clone --mirror "%s" "%s"' % (source, os.path.basename (local_dest_file)))
+ else:
+ raise Exception ('missing source: %s' % source)
self.sources = local_sources

0 comments on commit f6ea1fa

Please sign in to comment.