lib/u3d/commands.rb in u3d-1.0.15 vs lib/u3d/commands.rb in u3d-1.0.16

- old
+ new

@@ -104,11 +104,11 @@ version = specified_or_current_project_version(args[0]) UI.user_error!("You cannot use the --operating_system and the --install options together") if options[:install] && options[:operating_system] os = valid_os_or_current(options[:operating_system]) - packages = packages_with_unity_first(os, options) + packages = packages_with_unity_first(options) cache_versions = cache_versions(os, offline: !options[:download]) version = interpret_latest(version, cache_versions) unless cache_versions[version] UI.error "No version '#{version}' was found in cache. Either it doesn't exist or u3d doesn't know about it yet. Try refreshing with 'u3d available -f'" @@ -284,14 +284,10 @@ .version.to_s UI.message "Version '#{version}' is #{iversion}." iversion end - def packages_with_unity_first(os, options) - if os == :linux - UI.important 'Option -a | --all currently meaningless for Linux (only one package available)' if options[:all] - UI.important 'Option -p | --packages currently meaningless for Linux (only one package available)' if options[:packages] - end + def packages_with_unity_first(options) temp = options[:packages] || ['Unity'] temp.insert(0, 'Unity') if temp.delete('Unity') temp end