lib/active_debian_repository/package.rb
# FIXME: maybe we should rename it: dependencies
#   - Return an array of search_class || self.class packages it depends on
maybe we should rename it: dependencies
Return an array of search_class || self.class packages it depends on
maybe we should rename it : dependencies Return an array of search_class || self . class packages it depends on
def depends_on
      if self.depends
        self.depends.split(', ').sort.inject([]) do |res, name|
          if p = self.search_class_name.where(name: name.split(/ /)[0]).first
            res << p
          else
            logger.info("No package #{name.split(/ /)[0]} for #{self.depends} in #{self.inspect}")
          end
          res
        end
      else
        []
      end
    end
def depends_on if self . depends self . depends . split ( ', ' ) . sort . inject ( [ ] ) do | res , name | if p = self . search_class_name . where ( name : name . split ( / / ) [ 0 ] ) . first res << p else logger . info ( "No package #{name.split(/ /)[0]} for #{self.depends} in #{self.inspect}" ) end res end else [ ] end end
FIXME: maybe we should rename it: dependencies
 Return an array of search_class || self.class packages it depends on
FIXME : maybe we should rename it : dependencies Return an array of search_class || self . class packages it depends on