Skip to content

Commit

Permalink
[api] fix import of old distributions.xml file when using rpm packages
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Jan 17, 2013
1 parent 103234a commit 63f538b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/db/migrate/20121216151549_create_distributions.rb
Expand Up @@ -23,6 +23,7 @@ def up
end

path = Rails.root.join("files", "distributions.xml")
path = Rails.root.join("files", "distributions.xml.rpmsave") unless File.exists? path
begin
req = Xmlhash.parse(File.read(path))
if req
Expand Down

0 comments on commit 63f538b

Please sign in to comment.