[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/devtools/waf/demos/gnome
From:       Thomas Nagy <tnagyemail-mail () yahoo ! fr>
Date:       2006-07-30 16:19:39
Message-ID: 1154276379.334607.5729.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 567927 by tnagy:

Test for writeability.


 M  +6 -5      wscript  


--- trunk/playground/devtools/waf/demos/gnome/wscript #567926:567927
@@ -55,9 +55,10 @@
 		ret = Runner.exec_command(command)
 
 		# now the scrollkeeper update
-		dir1 = Common.path_install('PREFIX', 'var/scrollkeeper')
-		dir2 = Common.path_install('DATADIR', 'omf/gnome-hello')
-		command = 'scrollkeeper-update -p %s -o %s' % (dir1, dir2)
-		print command
-		ret = Runner.exec_command(command)
 
+		if os.path.iswriteable('/var/log/scrollkeeper.log'):
+			dir1 = Common.path_install('PREFIX', 'var/scrollkeeper')
+			dir2 = Common.path_install('DATADIR', 'omf/gnome-hello')
+			command = 'scrollkeeper-update -p %s -o %s' % (dir1, dir2)
+			ret = Runner.exec_command(command)
+
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic