From 0b0be5f44b778fc01d3af40c290404c937a133bf Mon Sep 17 00:00:00 2001 From: Junghyun Kim Date: Tue, 16 May 2017 19:14:32 +0900 Subject: [PATCH] use url directly in case of selected_snapshot is set. Change-Id: Ie3b06bf060f2f3bb83ca27d7cb5ef5805de8dc1e Signed-off-by: Junghyun Kim --- job_sync_snapdiff.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/job_sync_snapdiff.py b/job_sync_snapdiff.py index bea5627..35384cf 100755 --- a/job_sync_snapdiff.py +++ b/job_sync_snapdiff.py @@ -159,8 +159,7 @@ def main(): # if last build is selected, use it. last_repo_base = "" if "selected_snapshot" in content[0]: - selected_snapshot = content[0]["selected_snapshot"] - last_repo_base = os.path.join(url_pub_base, repo_path[:repo_path.rfind('/')], selected_snapshot) + last_repo_base = content[0]["selected_snapshot"] else: # generate current and last repo diff last_repo_base = get_last_build(url_pub_base, repo_path, release_name) -- 2.7.4