[Piuparts-commits] [piuparts] 01/05: p: define namedttuple FileInfo globally s.t. it can be pickled

Holger Levsen holger at moszumanska.debian.org
Tue Mar 15 18:27:12 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 28f4fda6a462857142c839f5e4bd4c172a445f71
Author: Andreas Beckmann <anbe at debian.org>
Date:   Sat Mar 12 14:24:58 2016 +0100

    p: define namedttuple FileInfo globally s.t. it can be pickled
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
 debian/changelog | 6 +++++-
 piuparts.py      | 3 ++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index ace0dab..6bb4a68 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,10 @@
 piuparts (0.71) UNRELEASED; urgency=medium
 
-  * continue development…
+  [ Andreas Beckmann ]
+  * piuparts.py:
+    - Define namedtuple FileInfo globally s.t. it can be pickled.
+
+  [ Holger Levsen ]
 
  -- Holger Levsen <holger at debian.org>  Tue, 08 Mar 2016 13:02:42 +0100
 
diff --git a/piuparts.py b/piuparts.py
index b4d1d85..7371408 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -697,6 +697,8 @@ def is_broken_symlink(root, dirpath, filename):
     return not os.path.exists(pathname)
 
 
+FileInfo = namedtuple('FileInfo', ['st', 'target', 'user', 'group'])
+
 class Chroot:
 
     """A chroot for testing things in."""
@@ -1426,7 +1428,6 @@ class Chroot:
 
     def save_meta_data(self):
         """Return the filesystem meta data for all objects in the chroot."""
-        FileInfo = namedtuple('FileInfo', ['st', 'target', 'user', 'group'])
         self.run(["apt-get", "clean"])
         logging.debug("Recording chroot state")
         root = self.relative(".")

-- 
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