use url directly in case of selected_snapshot is set. 23/129423/1
authorJunghyun Kim <jh0822.kim@samsung.com>
Tue, 16 May 2017 10:14:32 +0000 (19:14 +0900)
committerJunghyun Kim <jh0822.kim@samsung.com>
Tue, 16 May 2017 10:14:32 +0000 (19:14 +0900)
Change-Id: Ie3b06bf060f2f3bb83ca27d7cb5ef5805de8dc1e
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
job_sync_snapdiff.py

index bea5627..35384cf 100755 (executable)
@@ -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)