diff options
author | Timo Teräs <timo.teras@iki.fi> | 2015-03-10 15:46:05 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2015-03-10 15:47:13 +0200 |
commit | da6e455f7001def03300a398dbbc02bb03c7f4b9 (patch) | |
tree | 192d4250879cfa27645e830c9efd5507e18e51d6 /src/database.c | |
parent | be8e133c0b5ba0980d0debbf26b76a0b866689e7 (diff) | |
download | apk-tools-da6e455f7001def03300a398dbbc02bb03c7f4b9.tar.gz apk-tools-da6e455f7001def03300a398dbbc02bb03c7f4b9.tar.bz2 apk-tools-da6e455f7001def03300a398dbbc02bb03c7f4b9.tar.xz apk-tools-da6e455f7001def03300a398dbbc02bb03c7f4b9.zip |
rename file info related functions for consistency
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/database.c b/src/database.c index 44d0b20..bdf6d6b 100644 --- a/src/database.c +++ b/src/database.c @@ -2425,7 +2425,7 @@ static void apk_db_purge_pkg(struct apk_database *db, if ((diri->dir->protect_mode == APK_PROTECT_NONE) || (apk_flags & APK_PURGE) || (file->csum.type != APK_CHECKSUM_NONE && - apk_file_get_info(db->root_fd, name, APK_FI_NOFOLLOW | file->csum.type, &fi) == 0 && + apk_fileinfo_get(db->root_fd, name, APK_FI_NOFOLLOW | file->csum.type, &fi) == 0 && apk_checksum_compare(&file->csum, &fi.csum) == 0)) unlinkat(db->root_fd, name, 0); if (apk_verbosity >= 3) @@ -2483,7 +2483,7 @@ static void apk_db_migrate_files(struct apk_database *db, cstype = ofile->csum.type; cstype |= APK_FI_NOFOLLOW; - r = apk_file_get_info(db->root_fd, name, cstype, &fi); + r = apk_fileinfo_get(db->root_fd, name, cstype, &fi); if (ofile && ofile->diri->pkg->name == NULL) { /* File was from overlay, delete the * packages version */ @@ -2500,7 +2500,7 @@ static void apk_db_migrate_files(struct apk_database *db, * existing file */ if (ofile == NULL || ofile->csum.type != file->csum.type) - apk_file_get_info(db->root_fd, name, + apk_fileinfo_get(db->root_fd, name, APK_FI_NOFOLLOW | file->csum.type, &fi); if ((apk_flags & APK_CLEAN_PROTECTED) || (file->csum.type != APK_CHECKSUM_NONE && |