python-apt: how to get ShortDesc and LongDesc

2004-10-10 Thread Free Ekanayaka
Hi, would someone write me a sample code on how to get the ShortDesc and LongDesc records from the PkgRecords class? I think it should start with something like: cache = apt_pkg.GetCache() records = apt_pkg.GetPkgRecords(cache) package = cache['my_pkg'] but I can't figure out how to go

Re: python-apt: how to get ShortDesc and LongDesc

2004-10-10 Thread Igor Stroh
Free Ekanayaka wrote: would someone write me a sample code on how to get the ShortDesc and LongDesc records from the PkgRecords class? I think it should start with something like: cache = apt_pkg.GetCache() records = apt_pkg.GetPkgRecords(cache) package = cache['my_pkg'] Since there are no

Re: python-apt: how to get ShortDesc and LongDesc

2004-10-10 Thread Free Ekanayaka
|--== Igor Stroh writes: IS Free Ekanayaka wrote: would someone write me a sample code on how to get the ShortDesc and LongDesc records from the PkgRecords class? I think it should start with something like: cache = apt_pkg.GetCache() records = apt_pkg.GetPkgRecords(cache)