Skip to content

Commit

Permalink
build.py: add missing spaces
Browse files Browse the repository at this point in the history
Add missing spaces around operators and spaces after comma.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
  • Loading branch information
dalgaaf committed May 27, 2013
1 parent b55d4d6 commit 3ac21eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions osc/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 :-)")
Expand All @@ -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)
Expand Down Expand Up @@ -797,7 +797,7 @@ def __str__(self):
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)):
Expand Down Expand Up @@ -867,7 +867,7 @@ def __str__(self):
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 ]
Expand Down

0 comments on commit 3ac21eb

Please sign in to comment.