New dependency/install/unpack WIP code.
This implementation will be faster and resolv the dependency chain correctly taking into account indirect/direct deps and priority. --HG-- extra : convert_revision : cc4ec186f06f944fa8825b176344c4d612658f85
This commit is contained in:
@@ -8,7 +8,7 @@ all: $(BIN)
|
||||
.PHONY: all
|
||||
|
||||
$(BIN): $(OBJS)
|
||||
$(CC) $(LDFLAGS) $^ -o $@
|
||||
$(CC) -g $(LDFLAGS) $^ -o $@
|
||||
|
||||
.PHONY: clean
|
||||
clean: clean-bins clean-objs
|
||||
|
||||
@@ -154,7 +154,7 @@ main(int argc, char **argv)
|
||||
if (dbdict == NULL)
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
pkgdict = xbps_find_pkg_in_dict(dbdict, argv[1]);
|
||||
pkgdict = xbps_find_pkg_in_dict(dbdict, "packages", argv[1]);
|
||||
if (pkgdict == NULL)
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
|
||||
@@ -176,7 +176,7 @@ show_pkg_info_from_repolist(prop_object_t obj, void *arg, bool *loop_done)
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
pkgdict = xbps_find_pkg_in_dict(dict, arg);
|
||||
pkgdict = xbps_find_pkg_in_dict(dict, "packages", arg);
|
||||
if (pkgdict == NULL) {
|
||||
prop_object_release(dict);
|
||||
free(plist);
|
||||
|
||||
Reference in New Issue
Block a user