Skip to content

Commit

Permalink
actually download( maybe work!)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandademic committed Aug 22, 2021
1 parent 35b05e9 commit 963a738
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/latte.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,21 @@ def self.getPkgfile
system("wget #{$packageFileURL} --directory-prefix=/tmp/")
# "wget #{$packageFileURL}"
puts 'package file download complete'

Pkg.downloadLatest
# TODO: implement begin.resuce,else,ensure,end
end

def self.downloadLatest
file = IniFile.load("/tmp/#{$query}.ini")
puts "loaded file"
data = file['package']
puts 'Release URL:'
puts data['Release']
@RURL = data['Release']
system("wget #{@RURL}")
#rescue
#abort("an error ocured")
#exit 1
end
end
FileUtils.touch('info.log')
Expand Down

0 comments on commit 963a738

Please sign in to comment.