[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. 0.51

Andreas Beckmann anbe at debian.org
Wed May 15 10:09:59 UTC 2013


The following commit has been merged in the master branch:
commit c2c3d51f611646bd3ac38bbef379552d5f8c3821
Author: Andreas Beckmann <anbe at debian.org>
Date:   Fri May 10 01:39:23 2013 +0200

    archive_old_logs: compress (xz) archived logs
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>

diff --git a/TODO b/TODO
index 27bfb5f..cc60373 100644
--- a/TODO
+++ b/TODO
@@ -54,7 +54,7 @@ for 0.5x:
 
 - sane default for known-problem-directory setting, or define it in piuparts.conf.sample
 
-- at least compress archived logfiles, maybe just all.
+- maybe compress all logfiles
 
 
 for 0.6x:
diff --git a/debian/changelog b/debian/changelog
index 47fb1ae..eebf38c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -50,8 +50,12 @@ piuparts (0.51) UNRELEASED; urgency=low
       (Closes: #699160)
     - Report the correct version for binary packages.
   * Makefile:
+  * archive_old_logs:
+    - Compress the archived logs.
   * detect_well_known_errors:
     - Skip sections that don't exist in piuparts.conf.
+  * piuparts-master.deb:
+    - Add Depends: xz-utils.
   * piuparts-slave.deb:
     - Restrict the ssh key added to master's authorized_keys to only run
       piuparts-master.
diff --git a/debian/control b/debian/control
index 8f895c2..3699fb2 100644
--- a/debian/control
+++ b/debian/control
@@ -51,6 +51,7 @@ Depends:
  openssh-server,
  python-debianbts,
  tango-icon-theme,
+ xz-utils,
  ${misc:Depends},
  ${python:Depends}
 Recommends:
diff --git a/master-bin/archive_old_logs.in b/master-bin/archive_old_logs.in
index e89ad76..5559802 100755
--- a/master-bin/archive_old_logs.in
+++ b/master-bin/archive_old_logs.in
@@ -52,6 +52,7 @@ for SECTION in $SECTIONS ; do
 			done
 		fi
 	done
+	find archive/ -name '*.log' | xargs -r xz -f
 	if [ -n "$OUTPUT" ] ; then
 		echo
 		echo

-- 
piuparts git repository



More information about the Piuparts-commits mailing list