Statistics
| Branch: | Tag: | Revision:

root / image_creator / os_type / slackware.py @ 3b2f6619

History | View | Annotate | Download (442 Bytes)

1
from image_creator.os_type.linux import Linux
2

    
3

    
4
class Slackware(Linux):
5
    def cleanup_log(self):
6
        # In slackware the metadata about installed packages are
7
        # stored in /var/log/packages. Clearing all /var/log files
8
        # will destroy the package management system.
9
        self.foreach_file('/var/log', self.g.truncate, ftype='r', \
10
            exclude='/var/log/packages')
11

    
12
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :