Skip to content

Commit

Permalink
Changed sqlite lookup on nix to a better one
Browse files Browse the repository at this point in the history
  • Loading branch information
coolGi69 committed Jun 20, 2024
1 parent c4ae567 commit e6cdaf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ impl LinuxPackageReadout {

if let Ok(con) = connection {
// Equivelent to `nix path-info --all --sigs | grep ultimate | wc -l`
let statement = con.prepare("SELECT COUNT(path) FROM ValidPaths WHERE ultimate=1");
let statement = con.prepare("SELECT COUNT(path) FROM ValidPaths WHERE sigs IS NOT NULL");

if let Ok(mut s) = statement {
if s.next().is_ok() {
Expand Down

0 comments on commit e6cdaf2

Please sign in to comment.