1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 14:56:14 +01:00

build.py: add missing spaces

Add missing spaces around operators and spaces after comma.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2013-05-27 14:47:16 +02:00
parent b55d4d6b99
commit 3ac21eb1e3

View File

@ -371,7 +371,7 @@ def check_trusted_projects(apiurl, projects):
print("Note that malicious packages can compromise the build result or even your system.")
r = raw_input(trustprompt % { 'project':prj })
if r == '1':
print("adding '%s' to ~/.oscrc: ['%s']['trusted_prj']" % (prj,apiurl))
print("adding '%s' to ~/.oscrc: ['%s']['trusted_prj']" % (prj, apiurl))
trusted.append(prj)
elif r != '2':
print("Well, good good bye then :-)")
@ -389,7 +389,7 @@ def main(apiurl, opts, argv):
xp = []
build_root = None
cache_dir = None
build_uid=''
build_uid = ''
vm_type = config['build-type']
build_descr = os.path.abspath(build_descr)
@ -797,7 +797,7 @@ def main(apiurl, opts, argv):
pradir = prdir+"/"+adir
# source fullfilename
sffn = i.fullfilename
filename=sffn.split("/")[-1]
filename = sffn.split("/")[-1]
# target fullfilename
tffn = pradir+"/"+filename
if not os.path.exists(os.path.join(pradir)):
@ -867,7 +867,7 @@ def main(apiurl, opts, argv):
else:
my_build_swap = build_root + '/swap'
vm_options = [ '--vm-type=%s'%vm_type ]
vm_options = [ '--vm-type=%s' % vm_type ]
if vm_type != 'lxc' and vm_type != 'emulator':
vm_options += [ '--vm-disk=' + my_build_device ]
vm_options += [ '--vm-swap=' + my_build_swap ]