diff options
author | Allan McRae <allan@archlinux.org> | 2010-10-11 14:05:07 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2010-10-14 13:17:40 +1000 |
commit | e464339e3bd37e9bdb2c8d13fa29408a1123f620 (patch) | |
tree | 2bc900f94e9204625e15e0cb7d339892cbe26949 /lib/libalpm/be_sync.c | |
parent | 448f78c067955d617c302f322a2dc6507cb6eb13 (diff) | |
download | pacman-e464339e3bd37e9bdb2c8d13fa29408a1123f620.tar.xz |
Move and rename splitname
The splitname function is a general utility function and so is better
suited to util.h. Rename it to _alpm_splitname to indicate it is an
internal libalpm function as was the case prior to splitting local and
sync db handling.
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_sync.c')
-rw-r--r-- | lib/libalpm/be_sync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c index 0504ca63..2981178c 100644 --- a/lib/libalpm/be_sync.c +++ b/lib/libalpm/be_sync.c @@ -172,7 +172,7 @@ int _alpm_sync_db_populate(pmdb_t *db) name = archive_entry_pathname(entry); - if(splitname(name, pkg) != 0) { + if(_alpm_splitname(name, pkg) != 0) { _alpm_log(PM_LOG_ERROR, _("invalid name for database entry '%s'\n"), name); _alpm_pkg_free(pkg); |