How do I list files from a Debian package using eptlibs?

Simple question: I downloaded the Apt package entry with libept. Is there a way to get a list of files? It should sound like

 record.GetFileList();

      

and it should return a vector string like the output

 dpkg -L packagename

      

0


source to share


1 answer


The main developer of libect (Petr Rockai) explains to me that unfortunately libept does not have such a method at this time. What they do in Adept:



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();

      

0


source







All Articles