Skip to content
Snippets Groups Projects
Commit 23582a0e authored by Timo Teräs's avatar Timo Teräs
Browse files

db: honour clean-protected flag again

parent 93f0b352
No related branches found
No related tags found
No related merge requests found
......@@ -1493,7 +1493,8 @@ static void apk_db_migrate_files(struct apk_database *db,
if (ofile == NULL ||
ofile->csum.type != file->csum.type)
apk_file_get_info(name, file->csum.type, &fi);
if (apk_checksum_compare(&file->csum, &fi.csum) == 0)
if ((apk_flags & APK_CLEAN_PROTECTED) ||
apk_checksum_compare(&file->csum, &fi.csum) == 0)
unlink(tmpname);
} else {
/* Overwrite the old file */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment