diff --git a/core/latte.rb b/core/latte.rb index 114f997..2fb83b3 100644 --- a/core/latte.rb +++ b/core/latte.rb @@ -6,23 +6,21 @@ module Pkg def self.findPkg(query) $query = query - puts "Getting #{$query}".colorize(:yellow) + puts "Starting install of #{$query}".colorize(:yellow) Pkg.getPkgfile end def self.getPkgfile pfr = URI.open("https://raw.githubusercontent.com/Pandademic/Latte/master/pkgs/#{$query}.ini").read packageFileURL = "https://raw.githubusercontent.com/Pandademic/Latte/master/pkgs/#{$query}.ini" - puts "Package file:#{pfr}" - # implemnt no donwload of pkg file by using pfr system("curl -O #{packageFileURL}") - puts 'package file download complete'.colorize(:yellow) + puts 'package file download complete!'.colorize(:green) Pkg.downloadLatest end def self.downloadLatest file = IniFile.load("#{$query}.ini") - puts 'loaded file' + puts 'Package file read!'.colorize(:green) pkgdata = file['package'] zipsupport = pkgdata['Media'] if zipsupport == true