[Piuparts-devel] Bug#632924: piuparts-slave to recreate tarball(s) beyond certain age

Scott Schaefer saschaefer at neurodiverse.org
Thu Jul 7 02:55:21 UTC 2011


Package: piuparts
Version: 0.40
Severity: wishlist
Tags: patch

Attached patch resolves two items:

1) From TODO ...

piuparts-slave: if chroot.tgz is older than N days, regenerate it
- currently this is done via ~piupartss/crontab, but that's a hack
- only throw away tarballs (and recreate them) after testing that they can be recreated

I hard-coded the MAX_TGZ_AGE at 30 days.  Log entry is written when the
file is recreated due to becoming too old.  The "old" file is renamed to 
.old so that,
should the new file fail to be created, it is simply renamed back and 
processing
continues.

piatti crontab entry should be removed after install.


2) Bug in piuparts-slave which prevented running a single section (by 
including
section name as command-line argument).

Variable 'global_config' was initialized only if len(sys.argv) > 1.  
This would cause
python exception and exit when gloval_config was accessed in call to 
section.setup()



-- System Information:
Debian Release: 6.0.1
    APT prefers stable
    APT policy: (990, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages piuparts depends on:
ii  apt                     0.8.10.3         Advanced front-end for dpkg
ii  debootstrap             1.0.26+squeeze1  Bootstrap a basic Debian
system
ii  lsb-release             3.2-23.2squeeze1 Linux Standard Base version
report
ii  lsof                    4.81.dfsg.1-1    List open files
ii  python                  2.6.6-3+squeeze6 interactive high-level
object-orie
ii  python-debian           0.1.18           Python modules to work with
Debian

piuparts recommends no packages.

Versions of packages piuparts suggests:
ii  ghostscript                 8.71~dfsg2-9 The GPL Ghostscript
PostScript/PDF
pn  python-rpy <none>       (no description available)

-- no debconf information

-------------- next part --------------
A non-text attachment was scrubbed...
Name: recreate-old-targz.patch
Type: text/x-patch
Size: 2948 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/piuparts-devel/attachments/20110706/5457c5f2/attachment.bin>


More information about the Piuparts-devel mailing list