Changeset 1951

Show
Ignore:
Timestamp:
02/02/11 14:51:32 (10 years ago)
Author:
arnonym
Message:

Print a message when the dbus service file can not be installed...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/support/dbus/SConscript

    r1888 r1951  
    11#!/bin/env python 
    22# 
    3 # Copyright (C) 2007-2008 Arnold Krille 
     3# Copyright (C) 2007,2008,2011 Arnold Krille 
    44# Copyright (C) 2007-2008 Pieter Palmers 
    55# 
     
    7474    targetdir = env.destdir + env['dbus_service_dir'] 
    7575    env.Alias( "install", env.Install( env.destdir + env['dbus_service_dir'], servicefile ) ) 
     76else: 
     77    if not env['dbus_service_dir']: 
     78        print 'Can\'t install the system-wide dbus service file as the concerned variable is not defined.' 
     79    else: 
     80        if not os.access( env['dbus_service_dir'], os.W_OK ): 
     81            print 'Insufficient rights to install the system-wide dbus service file.' 
     82            print 'Please run the "scons install" command with higher authority.' 
    7683 
    7784# static versions