0

Simple question: I have loaded an Apt package record with libept. There is a method to get file list? It should sound like

 record.GetFileList();

and it should return a vector string like the output of

 dpkg -L packagename
Emilio
  • 3,901
  • 11
  • 44
  • 50
  • ummm, isn't this a dup of your own http://stackoverflow.com/questions/341520/how-to-use-libapt-or-libept-in-debian-like-system-to-list-packages-and-get-thei – derobert Dec 07 '08 at 16:28
  • no.. this is about file "owned" by package enumeration.. the other post is about package listing – Emilio Dec 08 '08 at 21:43

1 Answers1

0

The libept main developer (Petr Rockai) explain me that unfortunately, at this time, libept have no such method. What they do in Adept is this:

QString flfilename = "/var/lib/dpkg/info/" + u8(t.package()) + ".list";
QFile flfile(flfilename);

QTextStream flInStream(&flfile);
while (!flInStream.atEnd()) {
   QString line = flInStream.readLine();
   // do stuff with line
}
flfile.close();
Emilio
  • 3,901
  • 11
  • 44
  • 50