mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-06 05:08:42 +02:00
if osc is started for the first time, add a complete .oscrc, with build configuration, not just the api user acccount. So it isn't necessary to do it later again.
This commit is contained in:
17
osc/core.py
17
osc/core.py
@@ -634,7 +634,22 @@ You will be asked for them below, and they will be stored in
|
||||
|
||||
fd = open(conffile, 'w')
|
||||
os.chmod(conffile, 0600)
|
||||
print >>fd, '[%s]\nuser: %s\npass: %s' % (netloc, username, password)
|
||||
print >>fd, """[general]
|
||||
|
||||
# Downloaded packages are cached here. Must be writable by you.
|
||||
#packagecachedir: /var/tmp/osbuild-packagecache
|
||||
|
||||
# Wrapper to call build as root (sudo, su -, ...)
|
||||
#su-wrapper: su -c
|
||||
|
||||
# rootdir to setup the chroot environment
|
||||
#build-root: /var/tmp/build-root
|
||||
|
||||
|
||||
[%s]
|
||||
user: %s
|
||||
pass: %s
|
||||
""" % (netloc, username, password)
|
||||
fd.close()
|
||||
|
||||
return username, password
|
||||
|
Reference in New Issue
Block a user