Commit abf8dd8f authored by Baptiste Daroussin's avatar Baptiste Daroussin
Browse files

Avoid duplicate dependencies in remote repos

When a remote repo reports multiple time the same package which could
happen in case the same package do exist with multiple extension or hash

Deduplicate the dependency loading chaing to avoir useless warning
parent d40fc229
......@@ -221,7 +221,7 @@ pkgdb_load_deps(sqlite3 *sqlite, struct pkg *pkg)
bool options_match;
char *formula_sql, *clause;
const char sql[] = ""
"SELECT d.name, d.origin, p.version, 0"
"SELECT DISTINCT d.name, d.origin, p.version, 0"
" FROM deps AS d"
" LEFT JOIN packages AS p ON"
" (p.origin = d.origin AND p.name = d.name)"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment