[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.45-102-g4c48ac2
Andreas Beckmann
debian at abeckmann.de
Fri Aug 3 08:51:42 UTC 2012
The following commit has been merged in the develop branch:
commit 9a5c2ed7800bf55f883961e844acdd02e855cde9
Author: Andreas Beckmann <debian at abeckmann.de>
Date: Fri Jul 20 10:51:30 2012 +0200
lib/db: add recycle/ subdirectory
logfiles to be recycled should be hardlinked into recycle/
Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
diff --git a/debian/changelog b/debian/changelog
index d555dbf..61f4b6f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -21,6 +21,9 @@ piuparts (0.46) UNRELEASED; urgency=low
- Package names may now have a ":any" qualification in some cases. Extend
the parser to recognize and discard this suffix.
* piupartslib/packagesdb.py:
+ - Implement logfile recycling mode:
+ + logfiles to be recycled should be hardlinked from pass/, fail/, ... to
+ recycle/
* piuparts-master.py:
- Accept and discard duplicate log submissions, preventing the slave from
retrying infinitely.
diff --git a/piupartslib/packagesdb.py b/piupartslib/packagesdb.py
index 2fd4cd1..460c65f 100644
--- a/piupartslib/packagesdb.py
+++ b/piupartslib/packagesdb.py
@@ -286,10 +286,11 @@ class PackagesDB:
self._in_state = None
self._package_state = {}
self.set_subdirs(ok="pass", fail="fail", evil="untestable",
- reserved="reserved", morefail=["bugged", "affected"])
+ reserved="reserved", morefail=["bugged", "affected"],
+ recycle="recycle")
self.create_subdirs()
- def set_subdirs(self, ok=None, fail=None, evil=None, reserved=None, morefail=None):
+ def set_subdirs(self, ok=None, fail=None, evil=None, reserved=None, morefail=None, recycle=None):
# Prefix all the subdirs with the prefix
if self.prefix:
pformat = self.prefix + "/%s"
@@ -312,6 +313,9 @@ class PackagesDB:
if morefail:
self._morefail = [pformat % s for s in morefail]
self._all.extend(self._morefail)
+ if recycle:
+ self._recycle = pformat % recycle
+ self._all.append(self._recycle)
def create_subdirs(self):
for sdir in self._all:
--
piuparts git repository
More information about the Piuparts-commits
mailing list