Commit 85b53402 authored by Michał Siwek's avatar Michał Siwek

Implement updating package lists

parent 6ce9327d
...@@ -237,6 +237,12 @@ when "search" ...@@ -237,6 +237,12 @@ when "search"
when "download" when "download"
search @pkgName search @pkgName
download download
when "update"
Dir.chdir CREW_LIB_PATH do
system "git fetch origin master"
system "git reset --hard origin/master"
end
puts "Package lists updated."
when "install" when "install"
search @pkgName search @pkgName
resolveDependenciesAndInstall resolveDependenciesAndInstall
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment