Re-add all pkg metadata objects to the repository index.
This commit is contained in:
parent
c5acbc7953
commit
98e1687ef5
4
NEWS
4
NEWS
@ -1,5 +1,9 @@
|
|||||||
xbps-0.26 (???):
|
xbps-0.26 (???):
|
||||||
|
|
||||||
|
* Re-added all metadata package objects to the repository index, this avoids
|
||||||
|
remote connections when querying packages from remote repositories. This also
|
||||||
|
speeds up 'xbps-src' when using remote repositories as well.
|
||||||
|
|
||||||
* A C99 compiler is now required due to the use of for loop initializers.
|
* A C99 compiler is now required due to the use of for loop initializers.
|
||||||
|
|
||||||
* Fixed #14 from github: "Removing recursively does not respect manual installation
|
* Fixed #14 from github: "Removing recursively does not respect manual installation
|
||||||
|
@ -289,26 +289,16 @@ repo_show_pkg_info(struct xbps_handle *xhp,
|
|||||||
const char *pattern,
|
const char *pattern,
|
||||||
const char *option)
|
const char *option)
|
||||||
{
|
{
|
||||||
xbps_dictionary_t ipkgd, bpkgd;
|
xbps_dictionary_t pkgd;
|
||||||
|
|
||||||
if (((ipkgd = xbps_rpool_get_pkg(xhp, pattern)) == NULL) &&
|
if (((pkgd = xbps_rpool_get_pkg(xhp, pattern)) == NULL) &&
|
||||||
((ipkgd = xbps_rpool_get_virtualpkg(xhp, pattern)) == NULL))
|
((pkgd = xbps_rpool_get_virtualpkg(xhp, pattern)) == NULL))
|
||||||
return errno;
|
return errno;
|
||||||
|
|
||||||
if ((bpkgd = xbps_repo_get_pkg_plist(xhp, ipkgd, "./props.plist")) == NULL)
|
|
||||||
return errno;
|
|
||||||
|
|
||||||
xbps_dictionary_set(bpkgd, "repository",
|
|
||||||
xbps_dictionary_get(ipkgd, "repository"));
|
|
||||||
xbps_dictionary_set(bpkgd, "filename-sha256",
|
|
||||||
xbps_dictionary_get(ipkgd, "filename-sha256"));
|
|
||||||
xbps_dictionary_set(bpkgd, "filename-size",
|
|
||||||
xbps_dictionary_get(ipkgd, "filename-size"));
|
|
||||||
|
|
||||||
if (option)
|
if (option)
|
||||||
show_pkg_info_one(bpkgd, option);
|
show_pkg_info_one(pkgd, option);
|
||||||
else
|
else
|
||||||
show_pkg_info(bpkgd);
|
show_pkg_info(pkgd);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -173,17 +173,6 @@ index_add(struct xbps_handle *xhp, int argc, char **argv, bool force)
|
|||||||
/*
|
/*
|
||||||
* Remove obsolete package objects.
|
* Remove obsolete package objects.
|
||||||
*/
|
*/
|
||||||
xbps_dictionary_remove(newpkgd, "archive-compression-type");
|
|
||||||
xbps_dictionary_remove(newpkgd, "build-date");
|
|
||||||
xbps_dictionary_remove(newpkgd, "build_date");
|
|
||||||
xbps_dictionary_remove(newpkgd, "conf_files");
|
|
||||||
xbps_dictionary_remove(newpkgd, "filename");
|
|
||||||
xbps_dictionary_remove(newpkgd, "homepage");
|
|
||||||
xbps_dictionary_remove(newpkgd, "license");
|
|
||||||
xbps_dictionary_remove(newpkgd, "maintainer");
|
|
||||||
xbps_dictionary_remove(newpkgd, "packaged-with");
|
|
||||||
xbps_dictionary_remove(newpkgd, "source-revisions");
|
|
||||||
xbps_dictionary_remove(newpkgd, "long_desc");
|
|
||||||
xbps_dictionary_remove(newpkgd, "pkgname");
|
xbps_dictionary_remove(newpkgd, "pkgname");
|
||||||
xbps_dictionary_remove(newpkgd, "version");
|
xbps_dictionary_remove(newpkgd, "version");
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user