Permalink
Browse files

Merge pull request #270 from jcopenha/master

Support 'prefix' in deb templates
  • Loading branch information...
2 parents 7bf937b + c3e5a0c commit 7842a6c192e7459d747ce1f042742e7b0f076304 @jordansissel committed Oct 2, 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 7842a6c

Please sign in to comment.