Fix trailing /'s for location per msb from last night
Signed-off-by: Martin J. Bligh <mbligh@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@836 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/utils.py b/server/utils.py
index 7738f52..fadc168 100644
--- a/server/utils.py
+++ b/server/utils.py
@@ -107,7 +107,10 @@
# location is a local path
elif os.path.exists(os.path.abspath(location)):
if not local_copy:
- return location
+ if os.path.isdir(location):
+ return location.rstrip('/') + '/'
+ else:
+ return location
tmpfile = os.path.join(tmpdir, os.path.basename(location))
if os.path.isdir(location):
tmpfile += '/'