xbps-rindex: use consistent output format

This commit is contained in:
Enno Boland 2016-03-27 01:59:07 +01:00
parent 35ad10ccbd
commit ba2074a1cc

View File

@ -153,7 +153,15 @@ repodata_commit(struct xbps_handle *xhp, const char *repodir,
}
printf(")\n");
}
printf("Packages are added to stage area.\n");
xbps_object_iterator_release(iter);
iter = xbps_dictionary_iterator(stage);
while ((keysym = xbps_object_iterator_next(iter))) {
xbps_dictionary_t pkg = xbps_dictionary_get_keysym(stage, keysym);
const char *pkgver, *arch;
xbps_dictionary_get_cstring_nocopy(pkg, "pkgver", &pkgver);
xbps_dictionary_get_cstring_nocopy(pkg, "architecture", &arch);
printf("stage: added `%s' (%s)\n", pkgver, arch);
}
xbps_object_iterator_release(iter);
rv = repodata_flush(xhp, repodir, "stagedata", stage, NULL);
}