diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-08-24 12:14:28 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-08-24 12:14:28 +0100 |
commit | 8bf6785664bf131640d8739929c0901b3190f0d0 (patch) | |
tree | 7f1c758293a7187619d58b403928d0ffcca4626f /seivot | |
parent | 57ccbf3fb6e7d11da8e675795b0a6d7171392225 (diff) | |
download | seivot-8bf6785664bf131640d8739929c0901b3190f0d0.tar.gz |
Only run make in obnam branch if Makefile exists.
Diffstat (limited to 'seivot')
-rwxr-xr-x | seivot | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -194,8 +194,9 @@ class Obnam(BackupProgram): def prepare(self): if self._branch: - logging.info('Building obnam in %s' % self._branch) - runcmd(['make'], cwd=self._branch) + if os.path.exists(os.path.join(self._branch, 'Makefile')): + logging.info('Building obnam in %s' % self._branch) + runcmd(['make'], cwd=self._branch) def backup(self, nth_gen): return self._run(['backup', self.live_data], nth_gen)[0] |