aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2013-01-02 01:57:40 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2013-01-02 01:57:40 +0200
commitbca95f2789586bc66cc933a705d476b67b1ffbd7 (patch)
treef13dec3ca88737be00c602a76b83228db8f18165 /scripts
parent10345d7c0b2dfe7e7b0222597da28147c433dd48 (diff)
Create latest symlink for prebuilt job type
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/publish_to_snapshots.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/publish_to_snapshots.py b/scripts/publish_to_snapshots.py
index e5f7809..5276751 100755
--- a/scripts/publish_to_snapshots.py
+++ b/scripts/publish_to_snapshots.py
@@ -208,7 +208,11 @@ class SnapshotsPublisher(object):
return build_dir_path, target_dir_path
- def create_symlink(self, args, target_dir_path):
+ def create_symlink(self, args, build_dir_path, target_dir_path):
+ if args.job_type == "prebuilt":
+ for root, dirs, files in os.walk(build_dir_path):
+ for dir in dirs:
+ target_dir_path = os.path.join(target_dir_path, dir)
symlink_path = os.path.dirname(target_dir_path)
if args.job_type == "android":
symlink_path = os.path.join(symlink_path, "lastSuccessful")
@@ -332,11 +336,13 @@ class SnapshotsPublisher(object):
sanitize=args.staging)
if (args.job_type == "android" or
+ args.job_type == "prebuilt" or
args.job_type == "ubuntu-hwpacks" or
args.job_type == "ubuntu-images" or
args.job_type == "ubuntu-restricted" or
args.job_type == "ubuntu-sysroots"):
- ret = self.create_symlink(args, target_dir_path)
+ ret = self.create_symlink(
+ args, build_dir_path, target_dir_path)
if ret != PASS:
return ret