def main
config_file = File.join(ENV["HOME"], ".gentoo-watch.yaml")
config_file = "/etc/gentoo-watch.yaml"
format = "%-26s%12s%12s%8s\n"
only_new = false
threads = 4
printf(format, "name", "portage", "available", "state")
# Determine the portage directory
portdir = IO.popen("python -c 'import portage; print portage.portdb.root'").gets.chomp
portdir = IO.popen("python -c 'import portage; print portage.portdb.porttree_root'").gets.chomp
config = YAML::Syck::Parser.new({}).load(File.open(config_file)).to_a
config_mutex = Mutex.new