From: Michael Tremer Date: Wed, 8 May 2013 20:50:11 +0000 (+0000) Subject: buildroot: Only copy dev nodes if they really exist. X-Git-Tag: 0.9.26~10^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=efffd953ca54809f1f7d0bb9269568477c660a6d;p=pakfire.git buildroot: Only copy dev nodes if they really exist. --- diff --git a/python/pakfire/builder.py b/python/pakfire/builder.py index 944c1a03d..68c9fd4b4 100644 --- a/python/pakfire/builder.py +++ b/python/pakfire/builder.py @@ -501,7 +501,12 @@ class BuildEnviron(object): for node in nodes: # Stat the original node of the host system and copy it to # the build chroot. - node_stat = os.stat(node) + try: + node_stat = os.stat(node) + + # If it cannot be found, just go on. + except OSError: + continue self._create_node(node, node_stat.st_mode, node_stat.st_rdev)