summaryrefslogtreecommitdiff
path: root/seivot
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-08-24 12:14:28 +0100
committerLars Wirzenius <liw@liw.fi>2011-08-24 12:14:28 +0100
commit8bf6785664bf131640d8739929c0901b3190f0d0 (patch)
tree7f1c758293a7187619d58b403928d0ffcca4626f /seivot
parent57ccbf3fb6e7d11da8e675795b0a6d7171392225 (diff)
downloadseivot-8bf6785664bf131640d8739929c0901b3190f0d0.tar.gz
Only run make in obnam branch if Makefile exists.
Diffstat (limited to 'seivot')
-rwxr-xr-xseivot5
1 files changed, 3 insertions, 2 deletions
diff --git a/seivot b/seivot
index d7b2991..54bdca1 100755
--- a/seivot
+++ b/seivot
@@ -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]