2014-07-07 10:49:32 +01:00
|
|
|
#!/usr/bin/python
|
2010-10-26 12:02:47 +01:00
|
|
|
|
|
|
|
import apt, sys
|
|
|
|
|
|
|
|
try:
|
|
|
|
cache = apt.Cache()
|
|
|
|
for pkg in cache:
|
|
|
|
if not pkg.is_installed:
|
|
|
|
name = pkg.name
|
|
|
|
summary = pkg.candidate.summary.capitalize()
|
|
|
|
description = pkg.candidate.description.replace("\n", "~~~")
|
|
|
|
print "CACHE" + "###" + str(name) + "###" + str(summary) + "###" + str(description)
|
|
|
|
except Exception, detail:
|
|
|
|
print "ERROR###ERROR###ERROR###ERROR"
|
|
|
|
print detail
|
|
|
|
sys.exit(1)
|