Major code revision
[snf-image-creator] / image_creator / os_type / slackware.py
1 from image_creator.os_type.linux import Linux
2
3
4 class Slackware(Linux):
5     def cleanup_log(self):
6         # In slackware the the installed packages info are stored in
7         # /var/log/packages. Clearing all /var/log files will destroy
8         # the package management
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 :