5
Aptfront::aptFrontInit()
6
cache = Aptfront::Global::cache()
8
if (not cache.openCacheFile(Aptfront::OpProgress.new(), Aptfront::Cache::OpenReadOnly))
9
puts "Error opening cache"
10
error = Aptfront::getGlobalError()
14
cache.openRecordsCache
15
pc = cache.packageCache
19
puts "Package: " + it.name
20
#puts "Candidate Version: " + it.candidateVersion.versionString
21
it.versionList.each { |v|
22
puts "Version: " + v.versionString + (v == it.candidateVersion ? " (candidate)" : '') + (v == it.currentVersion ? " (current)" : '')
23
puts "Section: " + v.section
24
puts "Architecture: " + v.architecture
25
puts "Description: " + v.shortDescription + v.longDescription