Change crew to perform postinstall in dest_dir to avoid confusions between...

Change crew to perform postinstall in dest_dir to avoid confusions between source build and binary distribution.
parent 41000974
...@@ -424,8 +424,8 @@ def build_and_preconfigure (target_dir) ...@@ -424,8 +424,8 @@ def build_and_preconfigure (target_dir)
end end
end end
def post_install (target_dir) def post_install (dest_dir)
Dir.chdir target_dir do Dir.chdir dest_dir do
puts "Performing post-install..." puts "Performing post-install..."
@pkg.postinstall @pkg.postinstall
end end
...@@ -617,7 +617,7 @@ def install ...@@ -617,7 +617,7 @@ def install
install_package dest_dir install_package dest_dir
# perform post-install process # perform post-install process
post_install target_dir post_install dest_dir
end end
#add to installed packages #add to installed packages
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment