anchor.diff:      case type
       when 'apt'
         script += <<-INSTALL
  -        #{sudo('apt-get')} update -q;
  +        apt-get update -q;
           sleep 10;
         INSTALL
       when 'yum'
         script += <<-INSTALL
  -        #{sudo('yum')} update;
  +        yum update;
           sleep 10;
         INSTALL
       when 'spm'
         script += <<-INSTALL
  -        #{sudo('spm')} update_repo;
  +        spm update_repo;
         INSTALL
       end
     end
  
positive.code:   # setup ppa
    config[:vendor_repo].select{|x| x[:type]=='ppa'}.each do |repo|
      script += <<-INSTALL
          #{sudo('add-apt-repository')} "ppa:#{repo[:name]}" -y;
      INSTALL
    end
  
  
negative.code:       when 'spm'
          if formula[:package].nil?
            script += <<-INSTALL
            spm -c #{config[:root_path]}/etc/salt install -y #{formula[:name]};
            INSTALL
          else
            script += <<-INSTALL
              curl -O #{formula[:package]};
              spm -c #{config[:root_path]}/etc/salt local install -y "$(basename #{formula[:package]})";
            INSTALL
          end
        when 'yum'
          script += <<-INSTALL
            yum install -y #{formula[:package]||formula[:name]};
          INSTALL
        when 'apt'
          script += <<-INSTALL
            apt-get install -y #{formula[:package]||formula[:name]};
          INSTALL
        end
      elsif formula.key?(:path)
  