~ubuntu-branches/ubuntu/natty/samba/natty-proposed

« back to all changes in this revision

Viewing changes to debian/source_samba.py

  • Committer: Bazaar Package Importer
  • Author(s): Brian Murray
  • Date: 2010-12-20 13:37:26 UTC
  • Revision ID: james.westby@ubuntu.com-20101220133726-qa3b7zpq86igut88
Tags: 2:3.5.6~dfsg-3ubuntu2
debian/source_samba.py: resolve some inconsistencies in key names 

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
 
64
64
 
65
65
        # Interactive report
66
 
        # start by checking if /etc/smb.conf exists
 
66
        # start by checking if /etc/samba/smb.conf exists
67
67
        if not os.path.exists ('/etc/samba/smb.conf'):
68
 
                ui.information("The configuration file '/etc/samba/smb.conf' does not exist. This file, and its contents, are critical for the operation of the SAMBA package(s). A common situation for this is:\n  * you removed (but not purged) SAMBA;\n  * later on, you (or somebody) manually deleted '/etc/samba/smb.conf;\n  * you reinstalled SAMBA.\nAs a result, this file is *not* reinstalled. If this is your case, please purge samba-common (e.g., sudo apt-get purge samba-common) and then reinstall SAMBA.\nYou may want to check other sources, like: https://answers.launchpad.net, https://help.ubuntu.com, and http://ubuntuforums.org. Please press any key to end apport's bug collection.")
 
68
                ui.information("The configuration file '/etc/samba/smb.conf' does not exist. This file, and its contents, are critical for the operation of the SAMBA package(s). A common situation for this is:\n  * you removed (but did not purge) SAMBA;\n  * later on, you (or somebody) manually deleted '/etc/samba/smb.conf;\n  * you reinstalled SAMBA.\nAs a result, this file is *not* reinstalled. If this is your case, please purge samba-common (e.g., sudo apt-get purge samba-common) and then reinstall SAMBA.\nYou may want to check other sources, like: https://answers.launchpad.net, https://help.ubuntu.com, and http://ubuntuforums.org. Please press any key to end apport's bug collection.")
69
69
                raise StopIteration # we are out
70
70
 
71
71
        ui.information("As a part of the bug reporting process, you'll be asked as series of questions to help provide a more descriptive bug report. Please answer the following questions to the best of your abilities. Afterwards, a browser will be opened to finish filing this as a bug in the Launchpad bug tracking system.")
93
93
                if response[0] == 2:
94
94
                        report['BothFailedConnect']  = 'Yes'
95
95
                if response[0] == 3:
96
 
                        report['OtherFailedconnect'] = 'Yes'
 
96
                        report['OtherFailedConnect'] = 'Yes'
97
97
 
98
98
                response = ui.yesno("The contents of your /etc/samba/smb.conf file may help developers diagnose your bug more quickly. However, it may contain sensitive information.  Do you want to include it in your bug report?")
99
99
                if response == None:
101
101
                if response == False:
102
102
                        report['SmbConfIncluded'] = 'No'
103
103
                if response == True:
104
 
                        report['SmbConfInclude'] = 'Yes'
 
104
                        report['SmbConfIncluded'] = 'Yes'
105
105
                        attach_file_if_exists(report, '/etc/samba/smb.conf', key='SMBConf')
106
106
 
107
107
                response = ui.yesno("The contents of your /var/log/samba/log.smbd and /var/log/samba/log.nmbd may help developers diagnose your bug more quickly. However, it may contain sensitive information. Do you want to include it in your bug report?")