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

Commit

Permalink
Output of flatpak list and snap list contains header information
Browse files Browse the repository at this point in the history
  • Loading branch information
TanmayPatil105 committed Jul 18, 2024
1 parent b160510 commit 17ae1e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fetch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ string getPackages()
{
Command::exec_async("snap list"s, [&](auto c) {
std::lock_guard<std::mutex> lock(mtx);
if (c->getOutputLines() > 0)
if (c->getOutputLines() > 1)
pkgs.push_back(rec{"snap"s, c->getOutputLines()});
});
}
Expand All @@ -412,7 +412,7 @@ string getPackages()
{
Command::exec_async("flatpak list"s, [&](auto c) {
std::lock_guard<std::mutex> lock(mtx);
if (c->getOutputLines() > 0)
if (c->getOutputLines() > 1)
pkgs.push_back(rec{"flatpak"s, c->getOutputLines()});
});
}
Expand Down

0 comments on commit 17ae1e8

Please sign in to comment.