Repository package index format 1.2.

The pkg index now stores all package objects from props.plist, so that
xbps-repo(8) doesn't have to access the target binpkg anymore.
This commit is contained in:
Juan RP
2011-05-27 17:32:42 +02:00
parent 604b315cfa
commit cfa637db48
8 changed files with 53 additions and 124 deletions

View File

@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2009-2010 Juan Romero Pardines.
* Copyright (c) 2009-2011 Juan Romero Pardines.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -217,17 +217,6 @@ xbps_repo_addpkg_index(prop_dictionary_t idxdict, const char *filedir,
rv = errno;
goto out;
}
/*
* Remove some unneeded and large objects.
*/
prop_dictionary_remove(newpkgd, "long_desc");
prop_dictionary_remove(newpkgd, "maintainer");
prop_dictionary_remove(newpkgd, "conf_files");
prop_dictionary_remove(newpkgd, "homepage");
prop_dictionary_remove(newpkgd, "build_date");
prop_dictionary_remove(newpkgd, "license");
/*
* Add dictionary into the index and update package count.
*/