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

Eptrb::init()
packages = Eptrb::AptPackages.new()

# this is nice, but PackageManager is currently broken

pm = Aptfront::PackageManager.new(cache)
if (ARGV[0] == "update")
  pm.update()
elsif (ARGV[0] == "upgrade")
  packages.state.upgrade
  pm.download
  pm.commit
# imagine more commands here
end

# but it will be back soon, since Adept needs it really
# really bad

