diff options
Diffstat (limited to 'scripts/lib/devtool/standard.py')
-rw-r--r-- | scripts/lib/devtool/standard.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index f364a45283..5eba2191d9 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py | |||
@@ -746,7 +746,7 @@ def _check_preserve(config, recipename): | |||
746 | os.remove(removefile) | 746 | os.remove(removefile) |
747 | else: | 747 | else: |
748 | tf.write(line) | 748 | tf.write(line) |
749 | os.rename(newfile, origfile) | 749 | bb.utils.rename(newfile, origfile) |
750 | 750 | ||
751 | def get_staging_kver(srcdir): | 751 | def get_staging_kver(srcdir): |
752 | # Kernel version from work-shared | 752 | # Kernel version from work-shared |
@@ -1094,10 +1094,10 @@ def rename(args, config, basepath, workspace): | |||
1094 | 1094 | ||
1095 | # Rename bbappend | 1095 | # Rename bbappend |
1096 | logger.info('Renaming %s to %s' % (append, newappend)) | 1096 | logger.info('Renaming %s to %s' % (append, newappend)) |
1097 | os.rename(append, newappend) | 1097 | bb.utils.rename(append, newappend) |
1098 | # Rename recipe file | 1098 | # Rename recipe file |
1099 | logger.info('Renaming %s to %s' % (recipefile, newfile)) | 1099 | logger.info('Renaming %s to %s' % (recipefile, newfile)) |
1100 | os.rename(recipefile, newfile) | 1100 | bb.utils.rename(recipefile, newfile) |
1101 | 1101 | ||
1102 | # Rename source tree if it's the default path | 1102 | # Rename source tree if it's the default path |
1103 | appendmd5 = None | 1103 | appendmd5 = None |
@@ -1333,7 +1333,7 @@ def _export_patches(srctree, rd, start_rev, destdir, changed_revs=None): | |||
1333 | if match_name: | 1333 | if match_name: |
1334 | # Rename patch files | 1334 | # Rename patch files |
1335 | if new_patch != match_name: | 1335 | if new_patch != match_name: |
1336 | os.rename(os.path.join(destdir, new_patch), | 1336 | bb.utils.rename(os.path.join(destdir, new_patch), |
1337 | os.path.join(destdir, match_name)) | 1337 | os.path.join(destdir, match_name)) |
1338 | # Need to pop it off the list now before checking changed_revs | 1338 | # Need to pop it off the list now before checking changed_revs |
1339 | oldpath = existing_patches.pop(old_patch) | 1339 | oldpath = existing_patches.pop(old_patch) |