xbps_get_path_from_pkg_dict_repo: adding rootdir wasn't correct for

a local repository, remove it.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091126034026-gufqt4x1uwme5675
This commit is contained in:
Juan RP 2009-11-26 04:40:26 +01:00
parent 391f02ce10
commit 572068d3df

View File

@ -146,11 +146,7 @@ xbps_get_path_from_pkg_dict_repo(prop_dictionary_t d, const char *uri)
if (!prop_dictionary_get_cstring_nocopy(d, "filename", &filen))
return NULL;
if (xbps_check_is_repo_string_remote(uri))
return xbps_xasprintf("%s/%s/%s", uri, arch, filen);
return xbps_xasprintf("%s/%s/%s/%s", xbps_get_rootdir(),
uri, arch, filen);
}
prop_dictionary_t SYMEXPORT