Mailinglist Archive: yast-devel (233 mails)

< Previous Next >
Re: [yast-devel] Re: [yast-commit] <rest-service> master : fixing packaging ...
  • From: Klaus Kaempf <kkaempf@xxxxxxx>
  • Date: Fri, 9 Oct 2009 08:55:52 +0200
  • Message-id: <20091009065552.GA838@xxxxxxxxxxxxx>
* Josef Reidinger <jreidinger@xxxxxxx> [Oct 09. 2009 08:24]:
File.join(File.dirname(__FILE__),"..","..","config","resources") -
VAR_DIR = File.join(File.dirname(__FILE__),"..","..","var") +
VAR_DIR =
File.join(File.dirname(__FILE__),"/var","lib","yastws","eulas") +
RESOURCES_DIR =
File.join(File.dirname(__FILE__),"/usr","share","yastws","eulas")

^^^
Hi, I think you don't want this path. you join directory of current exucuted
file with absolute path. so it should be (no __FILE__)
File.join("/usr","share","yastws","eulas")

And, while we're at it, we must generally refrain from hard-coding
fixed pathes into the application.


Klaus
---
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG N├╝rnberg)

--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References