Skip to content

Commit

Permalink
Update latte.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandademic committed Sep 18, 2021
1 parent cf9c0cc commit 24c03c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/latte.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ def self.findPkg(query)
end

def self.getPkgfile
#rescue OpenURI::HTTPError
# puts 'this package does not exist'
#end
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'
Pkg.downloadLatest
Expand Down

0 comments on commit 24c03c4

Please sign in to comment.