Change crew to remove already installed packages and the target package from the dependencies.

Change crew to hide `buildessential` from dependencies list since it is a fake package.
Change crew to not check :build dependencies if a target is already installed.
Chagen crew to remove unnecessary push_dependency call.
Change package.rb to update comments
This commit is contained in:
Kazushi (Jam) Marukawa
2017-04-23 00:22:52 +09:00
parent adee0e73fe
commit a1ddd9cbf0
2 changed files with 17 additions and 12 deletions

View File

@@ -12,8 +12,9 @@ class Package
@@debug_symbol = ENV['CREW_DEBUG_SYMBOL'] || false
def self.dependencies
# Not sure how to initialize instance variable of not constructed class.
# Therefore, initialize it in reader function.
# We need instance variable in derived class, so not define it here,
# base class. Instead of define it, we initialize it in a function
# called from derived classees.
@dependencies = Hash.new unless @dependencies
@dependencies
end