vasabi: samba-build: use early return to simplify
authorMichael Adam <obnox@samba.org>
Mon, 20 Apr 2015 15:00:50 +0000 (17:00 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 20 Apr 2015 15:00:50 +0000 (17:00 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
script/samba-build.py

index fe4b2f175700321d42575e585b0995da4d77444a..f7bb3a4eab1cbe855b0ea341ac058b6985850bbb 100755 (executable)
@@ -371,7 +371,10 @@ def do_build():
 
 def save_results():
     """ save the results """
-    if do_out_of_tree and options.do_copy_bindir:
+    if not do_out_of_tree:
+        return
+
+    if options.do_copy_bindir:
         print "Copying back results from '%s' to '%s'." % (bld_dir_bin,
                 options.srcdir)
         cmd = [ "rsync",