| } | ||
|
|
||
| for (int i = args; i < argc; i++) { | ||
| r = index_add_pkg(xhp, index, stage, argv[i], force); |
| return -ENAMETOOLONG; | ||
| } | ||
|
|
||
| fd = open(path, O_WRONLY|O_CREAT|O_CLOEXEC, 0660); |
| printf("index: removed pkg %s\n", pkgver); | ||
| } | ||
| xbps_dictionary_get_cstring_nocopy(obj, "filename-sha256", &sha256); | ||
| if (xbps_file_sha256_check(path, sha256) != 0) |
| errno = -r; | ||
| return NULL; | ||
| } | ||
| repo->xhp = xhp; |
By combining repodata and stage data into a single file its easier to use remote stagedata when enabled. This also avoids having to come up with a new mechanism to fetch -stagedata and having to keep -repodata and -stagedata in sync.