'method': 'scp',
'login': 'reprepro',
'incoming': '/srv/debian-repository/incoming/%s' %(os.environ.get('DISTRIBUTION')),
- 'allow_unsigned_uploads': 0
+ 'allow_unsigned_uploads': 1,
+ 'default_host_main': 'profitbricks'
}
DPUT_CF = os.path.join(GIT_TARGET_WORKSPACE, 'dput.cf')
def create_dput_cfg():
fh = open(DPUT_CF, 'w')
config = SafeConfigParser()
- config.add_section('origin')
+ config.add_section('profitbricks')
for option, value in DPUT_OPTIONS.iteritems():
- config.set('origin', '%s' %(option), '%s' %(value))
+ config.set('profitbricks', '%s' %(option), '%s' %(value))
config.write(fh)
fh.close()
return True