Fix a replace url in KS file 64/176364/1
authorYonghee Han <onstudy@samsung.com>
Thu, 19 Apr 2018 01:32:42 +0000 (10:32 +0900)
committerYonghee Han <onstudy@samsung.com>
Thu, 19 Apr 2018 01:32:42 +0000 (10:32 +0900)
Add a / when the / at the end of base url does not exist

Change-Id: Ieac762749522ba377fe323bb61df057bc234fc3c

job_rsync_download.py

index adf7d9b..3859280 100755 (executable)
@@ -110,6 +110,9 @@ def main():
     rsync_url = os.path.join(os.getenv('RSYNC_SNAPSHOT'), content['repo_path'])
     origin_BASE_URL = os.getenv('URL_PUBLIC_REPO_BASE')
     copy_BASE_URL = os.getenv('RSYNC_DOWNLOAD_BASE_URL')
+    if not copy_BASE_URL.endswith('/'):
+        copy_BASE_URL += '/'
+
     print 'origin_BASE_URL:%s' %( origin_BASE_URL)
     print 'copy_BASE_URL:%s' %( copy_BASE_URL)