From: donghyuk.yang Date: Tue, 12 Feb 2013 07:10:38 +0000 (+0900) Subject: [Title] Show error message when use build-dep/install-dep before updating remote... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17bc03fa95a9b932a6506cb9c68d50be8ca35454;p=sdk%2Ftools%2Fsdk-build.git [Title] Show error message when use build-dep/install-dep before updating remote packaging --- diff --git a/pkg-cli b/pkg-cli index eff2d9d..0a9717c 100755 --- a/pkg-cli +++ b/pkg-cli @@ -124,6 +124,10 @@ when "list-lpkg" then when "build-dep" then client = Client.new( nil, nil, nil ) result = client.get_build_dependent_packages( option[:pkg], option[:os], true ) + if result.nil? then + puts "Error: Failed to get remote package list. try update first." + exit 1 + end ret = "" result.each do |i| ret = ret + i + " --> " @@ -134,6 +138,10 @@ when "build-dep" then when "install-dep" then client = Client.new( nil, nil, nil ) result = client.get_install_dependent_packages( option[:pkg], option[:os], true, false ) + if result.nil? then + puts "Error: Failed to get remote package list. try update first." + exit 1 + end ret = "" result.each do |i| ret = ret + i + " --> "