~xnox/ubuntu/quantal/shadow/clear-locks

« back to all changes in this revision

Viewing changes to debian/source_shadow.py

  • Committer: Bazaar Package Importer
  • Author(s): Marc Deslauriers
  • Date: 2010-01-26 08:54:59 UTC
  • Revision ID: james.westby@ubuntu.com-20100126085459-8atkerq02z3e5v1u
Tags: 1:4.1.4.2-1ubuntu2
* debian/{source_shadow.py,rules}: Add apport hook
* debian/rules: fix FTBFS from newer libtools

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
 
 
3
'''Apport package hook for shadow
 
4
 
 
5
(c) 2010 Canonical Ltd.
 
6
Contributors:
 
7
Marc Deslauriers <marc.deslauriers@canonical.com>
 
8
 
 
9
This program is free software; you can redistribute it and/or modify it
 
10
under the terms of the GNU General Public License as published by the
 
11
Free Software Foundation; either version 2 of the License, or (at your
 
12
option) any later version.  See http://www.gnu.org/copyleft/gpl.html for
 
13
the full text of the license.
 
14
'''
 
15
 
 
16
from apport.hookutils import *
 
17
 
 
18
def add_info(report):
 
19
 
 
20
    attach_file_if_exists(report, '/etc/login.defs', 'LoginDefs')
 
21
 
 
22
if __name__ == '__main__':
 
23
    report = {}
 
24
    add_info(report)
 
25
    for key in report:
 
26
        print '[%s]\n%s' % (key, report[key])