Skip to content

Commit

Permalink
pushed new branch: 0_1_0
Browse files Browse the repository at this point in the history
git-svn-id: http://bundle-fu.googlecode.com/svn/tags/bundle_fu@15 1db77ec0-6337-0410-9320-454da9aca44f
  • Loading branch information
timcharper committed Aug 11, 2007
2 parents 52a3169 + e9eb36a commit 1b59544
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/bundle_fu/file_list.rb
Expand Up @@ -28,7 +28,9 @@ def update_mtimes
def self.open(filename)
return nil unless File.exists?(filename)
b = new
b.filelist = Marshal.load(File.read(filename))
File.open(filename, "rb") {|f|
b.filelist = Marshal.load(f) # rescue [])
}
b
end

Expand All @@ -47,7 +49,7 @@ def add_files(filenames=[])
end

def save_as(filename)
File.open(filename, "w") {|f| f.puts Marshal.dump(self.filelist)}
File.open(filename, "wb") {|f| f.puts Marshal.dump(self.filelist)}
end
protected
def abs_location(filename)
Expand Down

0 comments on commit 1b59544

Please sign in to comment.