Revision 121f3bc0 image_creator/os_type/slackware.py

b/image_creator/os_type/slackware.py
1
# -*- coding: utf-8 -*-
2
#
1 3
# Copyright 2012 GRNET S.A. All rights reserved.
2 4
#
3 5
# Redistribution and use in source and binary forms, with or
......
31 33
# interpreted as representing official policies, either expressed
32 34
# or implied, of GRNET S.A.
33 35

  
36
"""This module hosts OS-specific code for Slackware Linux"""
37

  
34 38
from image_creator.os_type.linux import Linux, sysprep
35 39

  
36 40

  
......
46 50
        # In slackware the metadata about installed packages are
47 51
        # stored in /var/log/packages. Clearing all /var/log files
48 52
        # will destroy the package management system.
49
        self.foreach_file('/var/log', self.g.truncate, ftype='r',
50
                          exclude='/var/log/packages')
53
        self._foreach_file('/var/log', self.g.truncate, ftype='r',
54
                           exclude='/var/log/packages')
51 55

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

Also available in: Unified diff