diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-03-04 11:08:49 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-03-04 11:08:49 +0200 |
commit | 3752b47e7b3b57affdc11f29a90ba2582812d314 (patch) | |
tree | 79e5c2ae4659d8eba5998e1f62fecb20335976dc /src/database.c | |
parent | 652a7bb1793e665fa29cb6aa5960bd09516427db (diff) | |
download | apk-tools-3752b47e7b3b57affdc11f29a90ba2582812d314.tar.gz apk-tools-3752b47e7b3b57affdc11f29a90ba2582812d314.tar.bz2 apk-tools-3752b47e7b3b57affdc11f29a90ba2582812d314.tar.xz apk-tools-3752b47e7b3b57affdc11f29a90ba2582812d314.zip |
db: apk-new should be created if the existing file is modified
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c index 09033de..a1437ba 100644 --- a/src/database.c +++ b/src/database.c @@ -1074,7 +1074,7 @@ static int apk_db_install_archive_entry(void *_ctx, if ((diri->dir->flags & APK_DBDIRF_PROTECTED) && apk_file_get_info(ae->name, &fi) == 0 && - (memcmp(file->csum, fi.csum, sizeof(csum_t)) == 0 || + (memcmp(file->csum, fi.csum, sizeof(csum_t)) != 0 || !csum_valid(file->csum))) { /* Protected file. Extract to separate place */ if (!apk_clean) { |