Skip to content

Commit c08e56e

Browse files
committed
deps: make sure the origin is only an information
Remove exact patch between both name and origin, this is not necessary anymore since we move the unicity very long ago to the name. besides origin can be changed on the fly and we want to still be able to get the exact dependency chain when doing pkg info -d.
1 parent 08bf9b3 commit c08e56e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libpkg/pkgdb_iterator.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ pkgdb_load_deps(sqlite3 *sqlite, struct pkg *pkg)
211211
"SELECT DISTINCT d.name, d.origin, p.version, 0"
212212
" FROM deps AS d"
213213
" LEFT JOIN packages AS p ON"
214-
" (p.origin = d.origin AND p.name = d.name)"
214+
" (p.name = d.name)"
215215
" WHERE d.package_id = ?1"
216-
" ORDER BY d.origin DESC";
216+
" ORDER BY d.name DESC";
217217
const char formula_preamble[] = ""
218218
"SELECT id,name,origin,version,locked FROM packages WHERE ";
219219
const char options_sql[] = ""

0 commit comments

Comments
 (0)