[BuildMonitor] BUGFIX: wrong snapshot_url
authorSungHun Hwang <sh0924.hwang@samsung.com>
Wed, 25 Jan 2017 23:04:56 +0000 (08:04 +0900)
committerSoonKyu Park <sk7.park@samsung.com>
Sat, 4 Feb 2017 06:16:25 +0000 (15:16 +0900)
fixed the wrong snapshot_url in [build_snapshot] table

before:  http://download.tizen.org/snapshots/...
after :  http://download.tizen.org/prerelease/...

Change-Id: I3990834b882af7b553758917792856fa51571af1
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
job_pre_release_obs.py

index c305e21..ddd667b 100755 (executable)
@@ -170,8 +170,9 @@ def make_repo(project, repo, backenddb, base_url, base_path,
         global bm_snapshot_name
         global bm_snapshot_url
         bm_snapshot_name = prerelease.build_id
-        bm_snapshot_path = snapshot.path
-        bm_snapshot_url = bm_snapshot_path.replace(base_path, base_url)
+        bm_snapshot_path = prerelease.path
+        bm_snapshot_url = os.path.join(bm_snapshot_path.replace(base_path, base_url),
+                                       bm_snapshot_name)
 
     for repo in targets:
         if block: