Permalink
Browse files

- delete the .deb if it exists, before we create it

  • Loading branch information...
jordansissel committed Jan 5, 2011
1 parent 162d466 commit ce8efab77c89b6bdceea3a4ec9adceb7a8558263
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/fpm/deb.rb
View
@@ -60,6 +60,7 @@ def assemble(params)
File.open("debian-binary", "w") { |f| f.puts "2.0" }
# pack up the .deb
+ File.delete(output) if File.exists?(output)
system("ar -qc #{output} debian-binary control.tar.gz data.tar.gz")
end
end # def assemble

0 comments on commit ce8efab

Please sign in to comment.