~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Max Bowsher
  • Date: 2010-10-14 21:22:48 UTC
  • mto: This revision was merged to the branch mainline in revision 5496.
  • Revision ID: maxb@f2s.com-20101014212248-mrp8otiif8lgge7d
Do not try to install Apport configuration when setup.py install is run as root.

Show diffs side-by-side

added added

removed removed

Lines of Context:
728
728
        # easy_install one
729
729
        DATA_FILES = [('man/man1', ['bzr.1'])]
730
730
 
731
 
    if sys.platform != 'win32':
732
 
        # see https://wiki.kubuntu.org/Apport/DeveloperHowTo
733
 
        #
734
 
        # checking the paths and hardcoding the check for root is a bit gross,
735
 
        # but I don't see a cleaner way to find out the locations in a way
736
 
        # that's going to align with the hardcoded paths in apport.
737
 
        if os.geteuid() == 0:
738
 
            DATA_FILES += [
739
 
                ('/usr/share/apport/package-hooks',
740
 
                    ['apport/source_bzr.py']),
741
 
                ('/etc/apport/crashdb.conf.d/',
742
 
                    ['apport/bzr-crashdb.conf']),]
743
 
 
744
731
    # std setup
745
732
    ARGS = {'scripts': ['bzr'],
746
733
            'data_files': DATA_FILES,