Permalink
Browse files

Support 'prefix' in deb templates

  • Loading branch information...
1 parent 7bf937b commit c3e5a0c9072af114cb018257d2f45f7e50428d8e @jcopenha jcopenha committed Oct 1, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/fpm/package/deb.rb
@@ -127,6 +127,10 @@ def name
return @name
end # def name
+
+ def prefix
+ return (attributes[:prefix] or "/")
+ end # def prefix
def input(input_path)
extract_info(input_path)
@@ -464,5 +468,5 @@ def to_s(format=nil)
return super(format)
end # def to_s
- public(:input, :output, :architecture, :name, :converted_from, :to_s)
+ public(:input, :output, :architecture, :name, :prefix, :converted_from, :to_s)
end # class FPM::Target::Deb

0 comments on commit c3e5a0c

Please sign in to comment.