Merge pull request #1152 from jam7/update-postinstall-process

Update postinstall process
This commit is contained in:
lyxell
2017-08-28 17:12:33 +02:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

6
crew
View File

@@ -459,8 +459,8 @@ def build_and_preconfigure (target_dir)
end
end
def post_install (target_dir)
Dir.chdir target_dir do
def post_install (dest_dir)
Dir.chdir dest_dir do
puts "Performing post-install..."
@pkg.postinstall
end
@@ -652,7 +652,7 @@ def install
install_package dest_dir
# perform post-install process
post_install target_dir
post_install dest_dir
end
#add to installed packages

View File

@@ -79,7 +79,7 @@ class Package
end
# Function to perform post-install for all even if it is a fake package.
# Function to perform post-install for both source build and binary distribution
def self.postinstall
end