mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-12 23:56:13 +01:00
build.py: fix bad indentation
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
6db0431cb7
commit
7e3a901596
20
osc/build.py
20
osc/build.py
@ -499,10 +499,10 @@ def main(apiurl, opts, argv):
|
|||||||
apihost = urlsplit(apiurl)[1]
|
apihost = urlsplit(apiurl)[1]
|
||||||
if not build_root:
|
if not build_root:
|
||||||
try:
|
try:
|
||||||
build_root = config['build-root'] % {'repo': repo, 'arch': arch,
|
build_root = config['build-root'] % {'repo': repo, 'arch': arch,
|
||||||
'project': prj, 'package': pacname, 'apihost': apihost}
|
'project': prj, 'package': pacname, 'apihost': apihost}
|
||||||
except:
|
except:
|
||||||
build_root = config['build-root']
|
build_root = config['build-root']
|
||||||
|
|
||||||
cache_dir = config['packagecachedir'] % {'apihost': apihost}
|
cache_dir = config['packagecachedir'] % {'apihost': apihost}
|
||||||
|
|
||||||
@ -810,13 +810,13 @@ def main(apiurl, opts, argv):
|
|||||||
os.symlink(sffn, tffn)
|
os.symlink(sffn, tffn)
|
||||||
if prefer_pkgs:
|
if prefer_pkgs:
|
||||||
for name, path in prefer_pkgs.items():
|
for name, path in prefer_pkgs.items():
|
||||||
if name == filename:
|
if name == filename:
|
||||||
print("Using prefered package: " + path + "/" + filename)
|
print("Using prefered package: " + path + "/" + filename)
|
||||||
os.unlink(tffn)
|
os.unlink(tffn)
|
||||||
if opts.linksources:
|
if opts.linksources:
|
||||||
os.link(path + "/" + filename, tffn)
|
os.link(path + "/" + filename, tffn)
|
||||||
else:
|
else:
|
||||||
os.symlink(path + "/" + filename, tffn)
|
os.symlink(path + "/" + filename, tffn)
|
||||||
|
|
||||||
if vm_type == "xen" or vm_type == "kvm" or vm_type == "lxc":
|
if vm_type == "xen" or vm_type == "kvm" or vm_type == "lxc":
|
||||||
print('Skipping verification of package signatures due to secure VM build')
|
print('Skipping verification of package signatures due to secure VM build')
|
||||||
|
Loading…
Reference in New Issue
Block a user