Rename lib/sync_remote_pkgidx.c to repository_sync_index.c.
xbps_sync_repository_pkg_index() renamed to xbps_repository_sync_pkg_index(). --HG-- rename : lib/sync_remote_pkgidx.c => lib/repository_sync_index.c extra : convert_revision : xtraeme%40gmail.com-20091130105325-75rr2xm1zpi8bjwh
This commit is contained in:
parent
a3db88bd07
commit
e4cda0e9cc
@ -157,7 +157,7 @@ register_repository(const char *uri)
|
|||||||
return errno;
|
return errno;
|
||||||
|
|
||||||
printf("Fetching remote package index at %s...\n", uri);
|
printf("Fetching remote package index at %s...\n", uri);
|
||||||
rv = xbps_sync_repository_pkg_index(idxstr);
|
rv = xbps_repository_sync_pkg_index(idxstr);
|
||||||
if (rv == -1) {
|
if (rv == -1) {
|
||||||
printf("Error: could not fetch pkg index file: %s.\n",
|
printf("Error: could not fetch pkg index file: %s.\n",
|
||||||
xbps_fetch_error_string());
|
xbps_fetch_error_string());
|
||||||
@ -277,7 +277,7 @@ repository_sync(void)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
printf("Syncing package index from: %s\n", rd->rd_uri);
|
printf("Syncing package index from: %s\n", rd->rd_uri);
|
||||||
rv = xbps_sync_repository_pkg_index(rd->rd_uri);
|
rv = xbps_repository_sync_pkg_index(rd->rd_uri);
|
||||||
if (rv == -1) {
|
if (rv == -1) {
|
||||||
printf("Failed! returned: %s\n",
|
printf("Failed! returned: %s\n",
|
||||||
xbps_fetch_error_string());
|
xbps_fetch_error_string());
|
||||||
|
@ -222,6 +222,10 @@ SYMEXPORT SIMPLEQ_HEAD(, repository_data) repodata_queue;
|
|||||||
int SYMEXPORT xbps_repository_pool_init(void);
|
int SYMEXPORT xbps_repository_pool_init(void);
|
||||||
void SYMEXPORT xbps_repository_pool_release(void);
|
void SYMEXPORT xbps_repository_pool_release(void);
|
||||||
|
|
||||||
|
/* From lib/repository_sync_index.c */
|
||||||
|
int SYMEXPORT xbps_repository_sync_pkg_index(const char *);
|
||||||
|
char SYMEXPORT *xbps_get_remote_repo_string(const char *);
|
||||||
|
|
||||||
/* From lib/requiredby.c */
|
/* From lib/requiredby.c */
|
||||||
int SYMEXPORT xbps_requiredby_pkg_add(prop_array_t, prop_dictionary_t);
|
int SYMEXPORT xbps_requiredby_pkg_add(prop_array_t, prop_dictionary_t);
|
||||||
int SYMEXPORT xbps_requiredby_pkg_remove(const char *);
|
int SYMEXPORT xbps_requiredby_pkg_remove(const char *);
|
||||||
@ -243,10 +247,6 @@ int SYMEXPORT xbps_get_pkg_state_dictionary(prop_dictionary_t, pkg_state_t *);
|
|||||||
int SYMEXPORT xbps_set_pkg_state_installed(const char *, pkg_state_t);
|
int SYMEXPORT xbps_set_pkg_state_installed(const char *, pkg_state_t);
|
||||||
int SYMEXPORT xbps_set_pkg_state_dictionary(prop_dictionary_t, pkg_state_t);
|
int SYMEXPORT xbps_set_pkg_state_dictionary(prop_dictionary_t, pkg_state_t);
|
||||||
|
|
||||||
/* From lib/sync_remote_pkgidx.c */
|
|
||||||
int SYMEXPORT xbps_sync_repository_pkg_index(const char *);
|
|
||||||
char SYMEXPORT *xbps_get_remote_repo_string(const char *);
|
|
||||||
|
|
||||||
/* From lib/unpack.c */
|
/* From lib/unpack.c */
|
||||||
int SYMEXPORT xbps_unpack_binary_pkg(prop_dictionary_t, bool);
|
int SYMEXPORT xbps_unpack_binary_pkg(prop_dictionary_t, bool);
|
||||||
|
|
||||||
|
@ -18,8 +18,8 @@ OBJS += configure.o config_files.o cmpver.o download.o fexec.o
|
|||||||
OBJS += humanize_number.o orphans.o plist.o purge.o register.o
|
OBJS += humanize_number.o orphans.o plist.o purge.o register.o
|
||||||
OBJS += regpkgs_dictionary.o remove.o remove_obsoletes.o repository.o
|
OBJS += regpkgs_dictionary.o remove.o remove_obsoletes.o repository.o
|
||||||
OBJS += repository_finddeps.o repository_findpkg.o repository_plist.o
|
OBJS += repository_finddeps.o repository_findpkg.o repository_plist.o
|
||||||
OBJS += repository_pool.o requiredby.o sha256.o sortdeps.o state.o
|
OBJS += repository_pool.o repository_sync_index.o requiredby.o sha256.o
|
||||||
OBJS += sync_remote_pkgidx.o unpack.o util.o pkgmatch.o mkpath.o
|
OBJS += sortdeps.o state.o unpack.o util.o pkgmatch.o mkpath.o
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: libfetch libxbps.so libxbps.a
|
all: libfetch libxbps.so libxbps.a
|
||||||
|
@ -71,7 +71,7 @@ xbps_get_remote_repo_string(const char *uri)
|
|||||||
* size and/or mtime match) and 1 if downloaded successfully.
|
* size and/or mtime match) and 1 if downloaded successfully.
|
||||||
*/
|
*/
|
||||||
int SYMEXPORT
|
int SYMEXPORT
|
||||||
xbps_sync_repository_pkg_index(const char *uri)
|
xbps_repository_sync_pkg_index(const char *uri)
|
||||||
{
|
{
|
||||||
struct url *url = NULL;
|
struct url *url = NULL;
|
||||||
struct utsname un;
|
struct utsname un;
|
Loading…
x
Reference in New Issue
Block a user