summaryrefslogtreecommitdiff
path: root/src/buildstream/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/utils.py')
-rw-r--r--src/buildstream/utils.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/buildstream/utils.py b/src/buildstream/utils.py
index 9593f3e75..2b6c2761b 100644
--- a/src/buildstream/utils.py
+++ b/src/buildstream/utils.py
@@ -1059,17 +1059,6 @@ def _process_list(
actionfunc(srcpath, destpath, result=result)
- elif stat.S_ISCHR(mode) or stat.S_ISBLK(mode):
- # Block or character device. Put contents of st_dev in a mknod.
- if not safe_remove(destpath):
- result.ignored.append(path)
- continue
-
- if os.path.lexists(destpath):
- os.remove(destpath)
- os.mknod(destpath, file_stat.st_mode, file_stat.st_rdev)
- os.chmod(destpath, file_stat.st_mode)
-
elif stat.S_ISFIFO(mode):
os.mkfifo(destpath, mode)