Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 36509
Collapse All | Expand All

(-)gentoo-watch-old (-2 / +2 lines)
Lines 186-192 Link Here
186
186
187
def main
187
def main
188
188
189
  config_file = File.join(ENV["HOME"], ".gentoo-watch.yaml")
189
  config_file = "/etc/gentoo-watch.yaml"
190
  format = "%-26s%12s%12s%8s\n"
190
  format = "%-26s%12s%12s%8s\n"
191
  only_new = false
191
  only_new = false
192
  threads = 4
192
  threads = 4
Lines 203-209 Link Here
203
  printf(format, "name", "portage", "available", "state")
203
  printf(format, "name", "portage", "available", "state")
204
204
205
  # Determine the portage directory
205
  # Determine the portage directory
206
  portdir = IO.popen("python -c 'import portage; print portage.portdb.root'").gets.chomp
206
  portdir = IO.popen("python -c 'import portage; print portage.portdb.porttree_root'").gets.chomp
207
207
208
  config = YAML::Syck::Parser.new({}).load(File.open(config_file)).to_a
208
  config = YAML::Syck::Parser.new({}).load(File.open(config_file)).to_a
209
  config_mutex = Mutex.new
209
  config_mutex = Mutex.new

Return to bug 36509