libxbps: remove unused xbps_check_pkg_file_hash().

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091128015121-wxiy8y0ift5ykrdm
This commit is contained in:
Juan RP
2009-11-28 02:51:21 +01:00
parent bf7ca100f6
commit e652de8d5a
2 changed files with 0 additions and 31 deletions

View File

@@ -83,35 +83,6 @@ xbps_check_file_hash(const char *path, const char *sha256)
return 0;
}
int SYMEXPORT
xbps_check_pkg_file_hash(prop_dictionary_t pkgd, const char *repoloc)
{
const char *sha256, *arch, *filename;
char *binfile;
int rv = 0;
assert(repoloc != NULL);
if (!prop_dictionary_get_cstring_nocopy(pkgd, "filename", &filename))
return EINVAL;
if (!prop_dictionary_get_cstring_nocopy(pkgd, "filename-sha256",
&sha256))
return EINVAL;
if (!prop_dictionary_get_cstring_nocopy(pkgd, "architecture", &arch))
return EINVAL;
binfile = xbps_xasprintf("%s/%s/%s", repoloc, arch, filename);
if (binfile == NULL)
return EINVAL;
rv = xbps_check_file_hash(binfile, sha256);
free(binfile);
return rv;
}
bool SYMEXPORT
xbps_check_is_repo_string_remote(const char *uri)
{