summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaakov M. Nemoy <loupgaroublond@gmail.com>2009-01-08 00:21:02 -0500
committerYaakov M. Nemoy <loupgaroublond@gmail.com>2009-01-08 00:21:02 -0500
commit84211749a73cbff248192519c0f458806b1fb065 (patch)
tree0ee0ef9968f041f6cdf4fead0f5f9d482bf1b0fb
parent6d3b33fa6c32c8702bab887e621f9cf61aaf9108 (diff)
downloadfedora-devshell-84211749a73cbff248192519c0f458806b1fb065.tar.gz
fedora-devshell-84211749a73cbff248192519c0f458806b1fb065.tar.xz
fedora-devshell-84211749a73cbff248192519c0f458806b1fb065.zip
Some minor tweaks and fixes
-rw-r--r--base/profiles.py2
-rw-r--r--modules/darcs.py2
-rw-r--r--modules/mock.py18
3 files changed, 12 insertions, 10 deletions
diff --git a/base/profiles.py b/base/profiles.py
index 0e09317..a6a047d 100644
--- a/base/profiles.py
+++ b/base/profiles.py
@@ -93,7 +93,7 @@ distro = {'RHL-7':('rhl7','.rhl7','rhl','7'),
'F-9':('dist-f9','.fc9','fedora','9'),
'F-10':('dist-f10','.fc10','fedora','10'),
'F-11':('dist-f11','.fc11','fedora','11'),
- 'devel':('dist-devel','.devel','fedora','11')}
+ 'devel':('dist-devel','.devel','fedora','rawhide')}
# this class is temporary, it's only for mimickng CVS for now
# later we'll come up with a better way to do custom profiles
diff --git a/modules/darcs.py b/modules/darcs.py
index 7735e45..0921d3c 100644
--- a/modules/darcs.py
+++ b/modules/darcs.py
@@ -141,7 +141,7 @@ class Darcs(RevisionControl):
stdout=darcs_out, stderr=darcs_out)
log.info('generating tarball %s.tar.gz, please wait...'
% full_name)
- p.wait()
+ p.communicate()
sourceball = full_name + '.tar.gz'
move(join(self.source_dir(), sourceball), sourceball)
self.cfg['sourceball'] = sourceball
diff --git a/modules/mock.py b/modules/mock.py
index aaa0108..e15a063 100644
--- a/modules/mock.py
+++ b/modules/mock.py
@@ -22,7 +22,7 @@ from subprocess import Popen
from base.base import log
from base.module import Module
from base.profiles import ver_rel
-from base.util import pwd
+from base.util import pwd, log_file
from modules.build import Build
from modules.dirfactory import DirFactory
@@ -44,17 +44,19 @@ class Mock(Module):
mock_cfg = self.profile.mock_cfg
result_dir = self.profile.result_dir
config_dir = self.profile.mock_cfg_dir
- cmd = ['mock', '-r %s' % mock_cfg,
+ log.debug('mock_cfg is ' + mock_cfg)
+ log.debug('result_dir is ' + result_dir)
+ log.debug('config_dir is ' + config_dir)
+ cmd = ['mock', '-r', mock_cfg,
'--configdir=%s' % config_dir,
'--resultdir=%s' % result_dir,
srpm_name]
log.debug('cmd is ' + str(cmd))
- with pwd(pkg.dir):
- with file('mock.log', 'w') as mock_out:
- with pwd(result_dir):
- p = Popen(cmd, stdout=mock_out, stderr=mock_out)
- log.info('mock compiling %s... please wait' % srpm_name)
- p.wait()
+ with pwd(result_dir):
+ with log_file('mock.log') as mock_out:
+ p = Popen(cmd, stdout=mock_out, stderr=mock_out)
+ log.info('mock compiling %s... please wait' % srpm_name)
+ p.communicate()
def close(self):
self.build.close()