projects
/
services
/
jenkins-scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9618175
)
Fix a replace url in KS file
64/176364/1
author
Yonghee Han
<onstudy@samsung.com>
Thu, 19 Apr 2018 01:32:42 +0000
(10:32 +0900)
committer
Yonghee 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
patch
|
blob
|
history
diff --git
a/job_rsync_download.py
b/job_rsync_download.py
index
adf7d9b
..
3859280
100755
(executable)
--- a/
job_rsync_download.py
+++ b/
job_rsync_download.py
@@
-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)