#!/usr/bin/ruby1.8
require "eptrb"

Eptrb::init()
packages = Eptrb::AptAggregator.new()
voc = packages.vocabulary()
tags = packages.tagMap()

# lightning introduction to debtags by enrico? :-)
tags.getItemsHavingTag( voc.tagByName( ARGV[0] ) ).each { |x|
  puts x.name unless x.isInstalled
}

# you can today get mostly everything that's in the apt cache
# (packages, versions, their maintainer, dependencies,
# md5sum, size, ...)

# you can today get tag information

# you could get popcon data here (if someone writes the
# popcon cache component) ... that's the shorter term

# you could get screenshot, changelog or other fancy things
# here -- that's the long term
