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:
Juan RP
2009-02-07 13:27:24 +01:00
parent 3f72a92c98
commit 61f0b09698
12 changed files with 712 additions and 512 deletions

View File

@@ -8,7 +8,7 @@ all: $(BIN)
.PHONY: all
$(BIN): $(OBJS)
$(CC) $(LDFLAGS) $^ -o $@
$(CC) -g $(LDFLAGS) $^ -o $@
.PHONY: clean
clean: clean-bins clean-objs

View File

@@ -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);

View File

@@ -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);