1
0
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:
Dr. Peter Poeml
2006-07-17 12:00:59 +00:00
parent e6fedfcf8a
commit b1f8dfdf72

View File

@@ -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