diff --git a/lib/omnibus/packagers/bff.rb b/lib/omnibus/packagers/bff.rb index d8faea6a3..09d7c2770 100644 --- a/lib/omnibus/packagers/bff.rb +++ b/lib/omnibus/packagers/bff.rb @@ -212,17 +212,22 @@ def create_bff_file # we will chown from 'project' on, rather than 'project/dir', which leaves # project owned by the build user (which is incorrect) # First - let's find out who we are. + puts staging_dir + puts "********START DEBUGGING FROM HERE********" shellout!("sudo chown -Rh 0:0 #{File.join(staging_dir, project.install_dir.match(%r{^/?(\w+)}).to_s)}") log.info(log_key) { "Creating .bff file" } # Since we want the owner to be root, we need to sudo the mkinstallp # command, otherwise it will not have access to the previously chowned # directory. + puts "********START DEBUGGING TO HERE********" shellout!("sudo /usr/sbin/mkinstallp -d #{staging_dir} -T #{File.join(staging_dir, "gen.template")}") # Print the full contents of the inventory file generated by mkinstallp # from within the staging_dir's .info folder (where control files for the # packaging process are kept.) + puts "********END DEBUGGING TO HERE********" + puts staging_dir log.debug(log_key) do "With .inventory file of:\n" + File.read("#{File.join( staging_dir, ".info", "#{safe_base_package_name}.inventory" )}") end