https://bugs.kde.org/show_bug.cgi?id=383032
Harald Sitter <sit...@kde.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WORKSFORME Status|UNCONFIRMED |RESOLVED --- Comment #1 from Harald Sitter <sit...@kde.org> --- works just fine. $ cat src/main.cpp #include <QApplication> #include <QApt/Backend> #include <QDebug> int main(int argc, char **argv) { QApplication app(argc, argv); QApt::Backend backend; backend.init(); auto pkg = backend.package("discord"); Q_ASSERT(pkg); qDebug() << pkg->isInstalled(); qDebug() << pkg->version(); } $ ./build/src/test test(18175)/(default) main: true test(18175)/(default) main: "0.0.1" $ apt policy discord discord: Installed: 0.0.1 Candidate: 0.0.1 Version table: *** 0.0.1 100 100 /var/lib/dpkg/status -- You are receiving this mail because: You are watching all bug changes.