[Piuparts-commits] [piuparts] 02/08: p: exclude /dev/pts from chroot state
Holger Levsen
holger at moszumanska.debian.org
Thu Apr 9 08:12:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit c10cddb2f4ffbd664db982d4d591f141735346ee
Author: Andreas Beckmann <anbe at debian.org>
Date: Wed Apr 8 14:45:15 2015 +0200
p: exclude /dev/pts from chroot state
this is a host-wide volatile filesystem
Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
piuparts.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/piuparts.py b/piuparts.py
index 2a435dd..7f1e5fe 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -1384,10 +1384,13 @@ class Chroot:
root = self.relative(".")
vdict = {}
proc = os.path.join(root, "proc")
+ devpts = os.path.join(root, "dev/pts")
for dirpath, dirnames, filenames in os.walk(root):
assert dirpath[:len(root)] == root
if dirpath[:len(proc) + 1] in [proc, proc + "/"]:
continue
+ if dirpath[:len(devpts) + 1] in [devpts, devpts + "/"]:
+ continue
for name in [dirpath] + \
[os.path.join(dirpath, f) for f in filenames]:
st = os.lstat(name)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git
More information about the Piuparts-commits
mailing list