summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFathi Boudra <fabo@debian.org>2012-04-30 14:59:22 +0300
committerFathi Boudra <fabo@debian.org>2012-04-30 14:59:22 +0300
commitd7239f6e798fbfcf92b1ae4e7f132f042d01c278 (patch)
tree44999770448bb73e5f73a0c9b45f5d002b6fa265
parente1d1cf18aba26819d35eab3894d169b7e3a78194 (diff)
downloadsnowball-binary-update-d7239f6e798fbfcf92b1ae4e7f132f042d01c278.tar.gz
Fix indentation and extra else.
-rwxr-xr-xpost-build-lava.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/post-build-lava.py b/post-build-lava.py
index d85c78b..f590a4b 100755
--- a/post-build-lava.py
+++ b/post-build-lava.py
@@ -73,8 +73,8 @@ def main():
print 'ci.linaro.org could not fulfill the request.'
print 'Error code: ', e.code
sys.exit("Failed to get last successful rootfs build number.")
- else:
- rootfs_build_number = eval(response.read())
+
+ rootfs_build_number = eval(response.read())
ci_url = "%s%s-%s-%s%s" % (ci_base_url, distribution, architecture, rootfs_type, "/lastSuccessfulBuild/buildTimestamp?format=yyyyMMdd")
request = urllib2.Request(ci_url)
@@ -88,8 +88,8 @@ def main():
print 'ci.linaro.org could not fulfill the request.'
print 'Error code: ', e.code
sys.exit("Failed to get last successful rootfs build timestamp.")
- else:
- rootfs_build_timestamp = eval(response.read())
+
+ rootfs_build_timestamp = eval(response.read())
rootfs_file_name = "linaro-%s-%s-%s-%s.tar.gz" % (distribution, rootfs_type, rootfs_build_timestamp, rootfs_build_number)