From bb417ff086512ee5f7532ad9e1069f9aa59b31ed Mon Sep 17 00:00:00 2001 From: Robin Wittler Date: Mon, 8 Aug 2011 17:55:33 +0200 Subject: [PATCH] commented out the dput stuff --- testgit_build.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/testgit_build.py b/testgit_build.py index f908131..65a03a3 100755 --- a/testgit_build.py +++ b/testgit_build.py @@ -74,8 +74,15 @@ SMTP_BUILD_SUCCESS = 'SUCCESSFULL' SMTP_BUILD_ERROR = 'NOT SUCCESSFULL' SMTP_FROM = '%s@profitbricks.com' %(pwd.getpwuid(os.geteuid()).pw_name) +CRE_URI = re.compile(r'(?P\w+)\:\/\/(?P[a-zA-Z0-9\-\_\.\+]+)\/(?P.*)$') +DPUT_URI = CRE_URI.match(GIT_REPO_PATH) +if not DPUT_URI: + raise Exception( + 'could not build DPUT_URI from "%s"' + %(GIT_REPO_PATH) + ) DPUT_OPTIONS = { - 'fqdn': 'minden.profitbricks.localdomain', + 'fqdn': DPUT_URI.get('url'), 'method': 'scp', 'login': 'jenkins', 'incoming': '/srv/debian-repository/incoming', @@ -265,8 +272,8 @@ if __name__ == '__main__': 'This is the output of git-buildpackage: \n%s' %(ret) ) - create_dput_cfg() - dput_package_upload() + #create_dput_cfg() + #dput_package_upload() exit_ok() -- 2.39.5