X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=lib%2Fforeach_path.c;h=ec6e07ed77866dd9984d5dc0180e806b1b19810b;hb=refs%2Ftags%2Fv0.3.7;hp=561e24f089b1674e88de4991b2a8e1ddd919f213;hpb=30aa9bfe1e9a0e682f7c942b8e68054551f14857;p=zpackage diff --git a/lib/foreach_path.c b/lib/foreach_path.c index 561e24f..ec6e07e 100644 --- a/lib/foreach_path.c +++ b/lib/foreach_path.c @@ -18,7 +18,7 @@ void *data, char **errmsg) { if (!zpm || zpm->error || !callback) return 0; s = sqlite3_str_new(zpm->db); - sqlite3_str_appendall(s, "select * from packagefiles_pkgid where "); + sqlite3_str_appendall(s, "select * from packagefiles_status where "); if (where) { sqlite3_str_appendf(s, "%s", where); @@ -30,7 +30,6 @@ void *data, char **errmsg) { sqlite3_str_appendf(s, " and printf('%%s-%%s-%%s', package, version, release) = %Q", pkgid); } - sql = sqlite3_str_value(s); if (!sql) { sqlite3_str_finish(s);