summaryrefslogtreecommitdiffstats
path: root/rpmbuild-remote.py
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-09-10 15:10:54 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-09-10 15:10:54 -0400
commit59f107dbe1ee2bdaab0e702e39036ccd98e1efff (patch)
tree0da6ae2911005dff212ebdaee7a1d881fb446715 /rpmbuild-remote.py
parent62ed4c8a3dfb95440acfa244b46409680f9a22de (diff)
downloadrpmbuild-remote-59f107dbe1ee2bdaab0e702e39036ccd98e1efff.zip
rpmbuild-remote-59f107dbe1ee2bdaab0e702e39036ccd98e1efff.tar.gz
rpmbuild-remote-59f107dbe1ee2bdaab0e702e39036ccd98e1efff.tar.xz
Complete destination path
Diffstat (limited to 'rpmbuild-remote.py')
-rwxr-xr-xrpmbuild-remote.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmbuild-remote.py b/rpmbuild-remote.py
index cee062f..411f274 100755
--- a/rpmbuild-remote.py
+++ b/rpmbuild-remote.py
@@ -122,14 +122,14 @@ def send_files(session, files, dest):
sftp = session.open_sftp()
for file in files:
LOG.info("Writing %s to server (%s)" % (file, dest))
- sftp.put(file, dest)
+ sftp.put(file, '%s/%s' % (dest, os.path.basename(file)))
sftp.close()
def get_files(session, files, dest):
sftp = session.open_sftp()
for file in files:
LOG.info("Fetching %s from server" % file)
- sftp.get(file, dest)
+ sftp.get(file, '%s/%s' % (dest, os.path.basename(file)))
sftp.close()
def log_regex(build_output):