Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Output of dpkg -l includes header information #149

Merged
merged 1 commit into from
May 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/fetch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ string getPackages()
{
Command::exec_async("dpkg -l"s, [&](auto c) {
std::lock_guard<std::mutex> lock(mtx);
if (c->getOutputLines() > 0)
pkgs.push_back(rec{"dpkg"s, c->getOutputLines()});
if (c->getOutputLines() > 5)
pkgs.push_back(rec{"dpkg"s, c->getOutputLines() - 5});
});
}
if (Path::of("/bin/snap"s).isExecutable())
Expand Down
Loading