From 29a4370ec22f39774505f5bc370e451d4bddf941 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Wed, 16 Nov 2016 13:56:54 -0500 Subject: [PATCH] Checking if from_path exists --- lib/gdbcommand.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/gdbcommand.py b/lib/gdbcommand.py index c1a0417..3b9b073 100644 --- a/lib/gdbcommand.py +++ b/lib/gdbcommand.py @@ -32,6 +32,10 @@ def create_copy_command (props): return [ 'true' ] from_path = os.path.join (get_web_base (), builder, commit[:2], commit, 'gdb.sum.xz') + + if not os.path.exists (from_path): + return [ 'false' ] + if istry and istry == 'yes': to_path = os.path.join (get_web_base (), builder, 'try', rev[:2], rev) else: