diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
| commit | 8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch) | |
| tree | efdc32587159d0050a69009bdf2330a531727d95 /scripts/cp-noerror | |
| parent | d412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff) | |
| download | poky-8c22ff0d8b70d9b12f0487ef696a7e915b9e3173.tar.gz | |
The poky repository master branch is no longer being updated.
You can either:
a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs
b) use the new bitbake-setup
You can find information about either approach in our documentation:
https://docs.yoctoproject.org/
Note that "poky" the distro setting is still available in meta-yocto as
before and we continue to use and maintain that.
Long live Poky!
Some further information on the background of this change can be found
in: https://lists.openembedded.org/g/openembedded-architecture/message/2179
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/cp-noerror')
| -rwxr-xr-x | scripts/cp-noerror | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/scripts/cp-noerror b/scripts/cp-noerror deleted file mode 100755 index 13a098eee0..0000000000 --- a/scripts/cp-noerror +++ /dev/null | |||
| @@ -1,56 +0,0 @@ | |||
| 1 | #!/usr/bin/env python3 | ||
| 2 | # | ||
| 3 | # Copyright OpenEmbedded Contributors | ||
| 4 | # | ||
| 5 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 6 | # | ||
| 7 | # Allow copying of $1 to $2 but if files in $1 disappear during the copy operation, | ||
| 8 | # don't error. | ||
| 9 | # Also don't error if $1 disappears. | ||
| 10 | # | ||
| 11 | |||
| 12 | import sys | ||
| 13 | import os | ||
| 14 | import shutil | ||
| 15 | |||
| 16 | def copytree(src, dst, symlinks=False, ignore=None): | ||
| 17 | """Based on shutil.copytree""" | ||
| 18 | names = os.listdir(src) | ||
| 19 | try: | ||
| 20 | os.makedirs(dst) | ||
| 21 | except OSError: | ||
| 22 | # Already exists | ||
| 23 | pass | ||
| 24 | errors = [] | ||
| 25 | for name in names: | ||
| 26 | srcname = os.path.join(src, name) | ||
| 27 | dstname = os.path.join(dst, name) | ||
| 28 | try: | ||
| 29 | d = dstname | ||
| 30 | if os.path.isdir(dstname): | ||
| 31 | d = os.path.join(dstname, os.path.basename(srcname)) | ||
| 32 | if os.path.exists(d): | ||
| 33 | continue | ||
| 34 | try: | ||
| 35 | os.link(srcname, dstname) | ||
| 36 | except OSError: | ||
| 37 | shutil.copy2(srcname, dstname) | ||
| 38 | # catch the Error from the recursive copytree so that we can | ||
| 39 | # continue with other files | ||
| 40 | except shutil.Error as err: | ||
| 41 | errors.extend(err.args[0]) | ||
| 42 | except EnvironmentError as why: | ||
| 43 | errors.append((srcname, dstname, str(why))) | ||
| 44 | try: | ||
| 45 | shutil.copystat(src, dst) | ||
| 46 | except OSError as why: | ||
| 47 | errors.extend((src, dst, str(why))) | ||
| 48 | if errors: | ||
| 49 | raise shutil.Error(errors) | ||
| 50 | |||
| 51 | try: | ||
| 52 | copytree(sys.argv[1], sys.argv[2]) | ||
| 53 | except shutil.Error: | ||
| 54 | pass | ||
| 55 | except OSError: | ||
| 56 | pass | ||
