diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-22 15:55:27 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-22 15:55:27 +0000 |
commit | 3bcc676a2b79bbe8c4eaea1e1592c4d839497301 (patch) | |
tree | 57a5aea2370a9dd82ef49fbb66ceac6d23189004 /src/database.c | |
parent | 75b339cae217a14d51f674a25522e91aadf63a65 (diff) | |
download | apk-tools-3bcc676a2b79bbe8c4eaea1e1592c4d839497301.tar.gz apk-tools-3bcc676a2b79bbe8c4eaea1e1592c4d839497301.tar.bz2 apk-tools-3bcc676a2b79bbe8c4eaea1e1592c4d839497301.tar.xz apk-tools-3bcc676a2b79bbe8c4eaea1e1592c4d839497301.zip |
db: print files when (un)installing if --verbose
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/database.c b/src/database.c index 7a6ac8a..1ae4778 100644 --- a/src/database.c +++ b/src/database.c @@ -1057,6 +1057,9 @@ static int apk_db_install_archive_entry(void *_ctx, apk_db_file_change_owner(db, file, diri, &ctx->file_diri_node); } + + if (apk_verbosity > 1) + printf("%s\n", ae->name); if ((diri->dir->flags & APK_DBDIRF_PROTECTED) && apk_file_get_info(ae->name, &fi) == 0) { @@ -1078,6 +1081,9 @@ static int apk_db_install_archive_entry(void *_ctx, } memcpy(file->csum, ae->csum, sizeof(csum_t)); } else { + if (apk_verbosity > 1) + printf("%s\n", ae->name); + if (name.ptr[name.len-1] == '/') name.len--; @@ -1117,6 +1123,8 @@ static void apk_db_purge_pkg(struct apk_database *db, apk_hash_delete(&db->installed.files, APK_BLOB_BUF(&key)); unlink(name); + if (apk_verbosity > 1) + printf("%s\n", name); __hlist_del(fc, &diri->owned_files.first); file->diri = NULL; db->installed.stats.files--; |