factory.addStep(ShellCommand(
name = "unpacksdk",
description = "Unpacking SDK archive",
- command = ["tar", "--keep-newer-files", "--strip-components=1", "-C", "sdk/", "-vxf", "sdk.archive"],
+ command = "rm -rf sdk_update && mkdir sdk_update && tar --strip-components=1 -C sdk_update/ -vxf sdk.archive",
+ haltOnFailure = True))
+
+ factory.addStep(ShellCommand(
+ name = "updatesdk",
+ description = "Updating SDK",
+ command = "rsync --checksum -av sdk_update/ sdk/ && rm -rf sdk_update",
haltOnFailure = True))
factory.addStep(FileDownload(mastersrc=home_dir+'/key-build', slavedest="sdk/key-build", mode=0600))