summaryrefslogtreecommitdiffstats
path: root/base/profiles.py
diff options
context:
space:
mode:
authorYaakov M. Nemoy <loupgaroublond@gmail.com>2009-01-07 11:17:39 -0500
committerYaakov M. Nemoy <loupgaroublond@gmail.com>2009-01-07 11:17:39 -0500
commita7bcebe96bd00388fea1c2cf01e0691534f61744 (patch)
tree570d9309f5e3913d0bbcb2d671284b119e848750 /base/profiles.py
parent79577f7d35ba8cff9ba7a1f97d8bae8bab1b001f (diff)
downloadfedora-devshell-a7bcebe96bd00388fea1c2cf01e0691534f61744.tar.gz
fedora-devshell-a7bcebe96bd00388fea1c2cf01e0691534f61744.tar.xz
fedora-devshell-a7bcebe96bd00388fea1c2cf01e0691534f61744.zip
Fixed some bugs in the builder
Diffstat (limited to 'base/profiles.py')
-rw-r--r--base/profiles.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/base/profiles.py b/base/profiles.py
index 83bfe25..667dcf6 100644
--- a/base/profiles.py
+++ b/base/profiles.py
@@ -19,7 +19,9 @@
from os.path import join
from subprocess import Popen, PIPE
+from base import log
from vars import FEDORA_DIR
+from util import flatten
TARGET = 0
DIST = 1
@@ -30,10 +32,10 @@ def distdef(dist):
return dist.replace('.', '')
def define(key, value):
- return '--define "%s %s"' % (key, value)
+ return ['-D', '%s %s' % (key, value)]
def join_defines(*defines):
- return " ".join(defines)
+ return flatten(defines)
def dist_defines(dist, distvar, distval):
dist = define('dist', dist)