diff options
| -rw-r--r-- | bitbake/lib/bb/utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index 5b94432b37..5eec787336 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
| @@ -741,7 +741,9 @@ def movefile(src, dest, newmtime = None, sstat = None): | |||
| 741 | renamefailed = 1 | 741 | renamefailed = 1 |
| 742 | if sstat[stat.ST_DEV] == dstat[stat.ST_DEV]: | 742 | if sstat[stat.ST_DEV] == dstat[stat.ST_DEV]: |
| 743 | try: | 743 | try: |
| 744 | os.rename(src, dest) | 744 | # os.rename needs to know the destination path with file name |
| 745 | destfile = os.path.join(dest, os.path.basename(src)) | ||
| 746 | os.rename(src, destfile) | ||
| 745 | renamefailed = 0 | 747 | renamefailed = 0 |
| 746 | except Exception as e: | 748 | except Exception as e: |
| 747 | if e[0] != errno.EXDEV: | 749 | if e[0] != errno.EXDEV: |
