From 5d423c45097faba7fa6ef2c22316aedf237add55 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Wed, 1 May 2013 15:27:28 -0700 Subject: [PATCH] tcmode-external-sourcery: don't break when not in a loop Signed-off-by: Christopher Larson --- conf/distro/include/tcmode-external-sourcery.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/conf/distro/include/tcmode-external-sourcery.inc b/conf/distro/include/tcmode-external-sourcery.inc index 059f7b8..5296ee9 100644 --- a/conf/distro/include/tcmode-external-sourcery.inc +++ b/conf/distro/include/tcmode-external-sourcery.inc @@ -155,9 +155,8 @@ def populate_toolchain_links(d): try: os.symlink(ld, ld_bfd) except OSError as exc: - if exc.errno == errno.EEXIST: - break - bb.fatal("Unable to populate toolchain binary symlink for %s: %s" % (ld_bfd, exc)) + if exc.errno != errno.EEXIST: + bb.fatal("Unable to populate toolchain binary symlink for %s: %s" % (ld_bfd, exc)) require conf/distro/include/csl-versions.inc