diff options
-rw-r--r-- | bitbake/lib/bb/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index 215c18cfa3..f5bd816ced 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -796,7 +796,7 @@ def movefile(src, dest, newmtime = None, sstat = None): | |||
796 | os.rename(src, destpath) | 796 | os.rename(src, destpath) |
797 | renamefailed = 0 | 797 | renamefailed = 0 |
798 | except Exception as e: | 798 | except Exception as e: |
799 | if e[0] != errno.EXDEV: | 799 | if e.errno != errno.EXDEV: |
800 | # Some random error. | 800 | # Some random error. |
801 | print("movefile: Failed to move", src, "to", dest, e) | 801 | print("movefile: Failed to move", src, "to", dest, e) |
802 | return None | 802 | return None |