This is quite a hack, but it is transparent to the system and fixes the
issues I experienced.
Comments?
···
====
— freeride-0.5.0rc1.orig/freebase/readers.rb
+++ freeride-0.5.0rc1/freebase/readers.rb
@@ -23,9 +23,29 @@
def self.load_libraries
require ‘yaml’
end
- def self.local_name(name)
-
filespec = $1 if name =~ %r{(config/.*)}
-
filespec = $1 if name =~ %r{(plugins/.*)}
-
"#{ENV['HOME']}/.freeride/#{filespec}"
- end
- class << self
-
private :local_name
- end
- def self.save(base_slot, filespec, name, version)
-
begin
-
file = File.new(filespec, "w+")
-
rescue Errno::EACCES
-
filespec = local_name(filespec)
-
dir = "/"
-
File.dirname(filespec[1..-1]).split("/").each do |d|
-
dir += "#{d}/"
-
Dir.mkdir(dir) rescue nil
-
end
-
file = File.new(filespec, "w+")
-
end
file.puts "#### Properties: #{name} - Version: #{version}"
file.puts gather_data(base_slot).to_yaml(:SortKeys=>true)
file.close
@@ -45,6 +65,12 @@
end
def self.load(base_slot, filespec)
-
filespec2 = local_name(filespec)
-
if File.exist?(filespec2)
-
data = nil
-
File.open(filespec2) {|file| file.binmode; data = file.read}
-
read_slot(base_slot, YAML.load(data))
-
end
return unless File.exist?(filespec)
data = nil
File.open(filespec) {|file| file.binmode; data = file.read}
======
–
_ _
__ __ | | ___ _ __ ___ __ _ _ __
'_ \ / | __/ __| '_
_ \ / ` | ’ \
) | (| | |__ \ | | | | | (| | | | |
.__/ _,|_|/| || ||_,|| |_|
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com
- JHM wonders what Joey did to earn “I’d just like to say, for the record,
that Joey rules.”
– Seen on #Debian
Mauricio Fernández wrote:
Sent: Monday, December 30, 2002 4:39 AM
To: ruby-talk ML
Subject: Re: FreeRIDE 0.5.0rc1: patch to allow per-user properties
This is quite a hack, but it is transparent to the system and fixes the
issues I experienced.
Thanks, but Laurent Julliard already made the real changes to fix this
problem and committed them to our CVS repository.
Curt
···
On Mon, Dec 30, 2002 at 09:35:23PM +0900, Mauricio Fernández wrote:
Much better
Mine is only a hack to get my packages running.
Is it then OK if I get a snapshot of the CVS and package it?
···
On Tue, Dec 31, 2002 at 05:59:46AM +0900, Curt Hibbs wrote:
Mauricio Fernández wrote:
Sent: Monday, December 30, 2002 4:39 AM
To: ruby-talk ML
Subject: Re: FreeRIDE 0.5.0rc1: patch to allow per-user properties
On Mon, Dec 30, 2002 at 09:35:23PM +0900, Mauricio Fernández wrote:
This is quite a hack, but it is transparent to the system and fixes the
issues I experienced.
Thanks, but Laurent Julliard already made the real changes to fix this
problem and committed them to our CVS repository.
–
_ _
__ __ | | ___ _ __ ___ __ _ _ __
'_ \ / | __/ __| '_
_ \ / ` | ’ \
) | (| | |__ \ | | | | | (| | | | |
.__/ _,|_|/| || ||_,|| |_|
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com
Software is like sex; it’s better when it’s free.
– Linus Torvalds
It should be OK, although that is the way RC1 was released…so your
builds will not quite be RC1…we should have a release soon though
that will include this and other bug fixes. Thanks so much for your
efforts!
-rich
···
On Monday, December 30, 2002, at 05:30 PM, Mauricio Fernández wrote:
On Tue, Dec 31, 2002 at 05:59:46AM +0900, Curt Hibbs wrote:
Mauricio Fernández wrote:
Sent: Monday, December 30, 2002 4:39 AM
To: ruby-talk ML
Subject: Re: FreeRIDE 0.5.0rc1: patch to allow per-user properties
On Mon, Dec 30, 2002 at 09:35:23PM +0900, Mauricio Fernández wrote:
This is quite a hack, but it is transparent to the system and fixes
the
issues I experienced.
Thanks, but Laurent Julliard already made the real changes to fix this
problem and committed them to our CVS repository.
Much better
Mine is only a hack to get my packages running.
Is it then OK if I get a snapshot of the CVS and package it?
Done it. I’ve made a new package for this: freeride-cvs. I’m setting up
the “infrastructure” (scripts and such) that will soon allow me to track
the CVS as close as I want, perhaps even with automatic “builds” and
releases.
···
On Tue, Dec 31, 2002 at 11:35:06AM +0900, Richard Kilmer wrote:
Thanks, but Laurent Julliard already made the real changes to fix this
problem and committed them to our CVS repository.
Much better
Mine is only a hack to get my packages running.
Is it then OK if I get a snapshot of the CVS and package it?
It should be OK, although that is the way RC1 was released…so your
builds will not quite be RC1…we should have a release soon though
that will include this and other bug fixes. Thanks so much for your
efforts!
–
_ _
__ __ | | ___ _ __ ___ __ _ _ __
'_ \ / | __/ __| '_
_ \ / ` | ’ \
) | (| | |__ \ | | | | | (| | | | |
.__/ _,|_|/| || ||_,|| |_|
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com
‘Ooohh… “FreeBSD is faster over loopback, when compared to Linux
over the wire”. Film at 11.’
– Linus Torvalds