Skip to content
Browse files

Support multiple dput targets if a build environment is in use.

  • Loading branch information...
1 parent cbf6a97 commit 04e55b6635c8811f513914decf51f7459d919f6b @codehelp codehelp committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 pybitclient/debianclient.py
View
6 pybitclient/debianclient.py
@@ -196,8 +196,12 @@ def upload (self, buildreq, conn_data):
logging.warn("E: upload: Failed to find %s file." % (changes))
retval = "upload_changes"
if not retval :
+ if (buildreq.get_buildenv() is not None):
+ upload_target = buildreq.get_buildenv()
+ else :
+ upload_target = self.settings["dput"]
command = "dput -c %s %s %s %s" % (self.dput_cfg,
- self.settings["dput"], self.settings["dput_dest"], changes)
+ upload_target, self.settings["dput_dest"], changes)
if pybitclient.run_cmd (command, self.settings["dry_run"], logfile):
retval = "upload_fail"
if not retval :

0 comments on commit 04e55b6

Please sign in to comment.
Something went wrong with that request. Please try again.