diff options
author | Alexis Christoforides <alexis@thenull.net> | 2017-02-21 21:40:54 +0300 |
---|---|---|
committer | Alexis Christoforides <alexis@thenull.net> | 2017-02-21 22:38:42 +0300 |
commit | aa21ee16f28a251c6dbabf4bdf74526add3414a5 (patch) | |
tree | 462b690eff78af11cbd98a52b50bf283c0139f05 /bockbuild | |
parent | 7d446abd40b5331b5900cc280dfe8c6d1a1eee4c (diff) |
Added some assertions to help trace a workspace bug
Diffstat (limited to 'bockbuild')
-rw-r--r-- | bockbuild/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bockbuild/package.py b/bockbuild/package.py index f8b5a24..ab5cc8b 100644 --- a/bockbuild/package.py +++ b/bockbuild/package.py @@ -446,6 +446,9 @@ class Package: self.workspace = dest shutil.move(scratch_workspace, self.workspace) + + if not os.path.exists(self.workspace): + error ('Workspace was not created') self.fetched = True def request_build(self, reason): @@ -633,6 +636,9 @@ class Package: if not isinstance(command, str): error('command arg must be a string: %s' % repr(command)) + if not os.path.isdir(cwd): + error('Directory does not exist: %s' % cwd) + try: env_command = '%s %s' % ( self.build_env, expand_macros(command, self)) |