lib/buildrdeb/package.rb in buildrdeb-0.0.1 vs lib/buildrdeb/package.rb in buildrdeb-0.0.2

- old
+ new

@@ -15,11 +15,11 @@ module BuildrDeb class DebTask < Buildr::ArchiveTask - attr_accessor :control, :prerm, :postinst, :postrm, :preinst, :version + attr_accessor :control, :prerm, :postinst, :postrm, :preinst, :triggers, :version # The ArchiveTask class delegates this method # so we can create the archive. # the file_map is the result of the computations of the include and exclude filters. # @@ -27,10 +27,10 @@ # then we will call dpkg --build over it. def create_from(file_map) root = File.join("target", "_#{File.basename(name)}") mkpath File.join(root, "DEBIAN") #echo "THe version " + @version - for file in ["control", "prerm", "postinst", "postrm", "preinst"] + for file in ["control", "prerm", "postinst", "postrm", "preinst", "triggers"] thefile = eval("self."+file) targetFile = File.join(root, "DEBIAN", file) if !thefile.nil? and File.exists? thefile actualFile = File.open(thefile, "r") myfile = File.open( targetFile, "w") \ No newline at end of file