]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
needs more options to upload
authorHolger Levsen <holger@layer-acht.org>
Thu, 25 Aug 2011 15:48:09 +0000 (17:48 +0200)
committerHolger Levsen <holger@layer-acht.org>
Thu, 25 Aug 2011 15:48:09 +0000 (17:48 +0200)
build.py

index a93fc987cc8d140209a24b5c23175fd41e4a520f..d7148aadc1994a1a252c351e51eae9874d70d12d 100755 (executable)
--- a/build.py
+++ b/build.py
@@ -88,7 +88,8 @@ DPUT_OPTIONS = {
         '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')
 
@@ -164,9 +165,9 @@ def dput_package_upload(changes_path):
 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