summaryrefslogtreecommitdiffstats
path: root/modules/darcs.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/darcs.py')
-rw-r--r--modules/darcs.py38
1 files changed, 21 insertions, 17 deletions
diff --git a/modules/darcs.py b/modules/darcs.py
index add869f..552e9b5 100644
--- a/modules/darcs.py
+++ b/modules/darcs.py
@@ -120,21 +120,25 @@ class Darcs(RevisionControl):
with self.src('--tag', tag):
yield
- @property
- def sourceball(self):
- with pwd(self.source_dir()):
- name = self.pkg_name
- ver = self.ver()
- date = self.date
- full_name = '%s-%s.%sdarcs' % (name, ver, date)
- with log_file('darcs.log') as darcs_out:
- p = Popen(['darcs', 'dist', '-d', full_name,
- '--repodir', self.source_dir()],
- stdout=darcs_out, stderr=darcs_out)
- log.info('generating tarball %s.tar.gz, please wait...' % full_name)
- p.wait()
- sourceball = full_name + 'tar.gz'
- mv(join(self.source_dir(), sourceball), sourceball)
- return sourceball
-
+
+ def setup_sourceball(self):
+ log.debug('someone set us up the bomb')
+ with pwd(self.dir):
+ with pwd(self.source_dir()):
+ name = self.pkg_name
+ ver = self.ver()
+ date = self.date
+ full_name = '%s-%s.%sdarcs' % (name, ver, date)
+ log.debug('full name is ' + full_name)
+ with log_file('darcs.log') as darcs_out:
+ log.debug('we get signal')
+ p = Popen(['darcs', 'dist', '-d', full_name],
+ stdout=darcs_out, stderr=darcs_out)
+ log.info('generating tarball %s.tar.gz, please wait...'
+ % full_name)
+ p.wait()
+ sourceball = full_name + '.tar.gz'
+ move(join(self.source_dir(), sourceball), sourceball)
+ self.cfg['sourceball'] = sourceball
+
__all__ = ['Darcs']