slitaz-4: tazpkg deletes files if they are in two packages

The binary /usr/bin/ldd is in both packages glibc-dev and slitaz-base-files. When I remove glibc-dev package as I don't need it anymore, the file /usr/bin/ldd is removed too. It took me quite a long time to figure out slitaz-base-files also had the file. Reinstalling that helped, but the removal behavior is not expected.

Many packages own files with the same path and name that overwrite the pre-existing packages file when installed. Tazpkg adds the package(modifier) that overwrites to the pre-existing packages modifier record. Before you remove a modifier it warns that a package on your system was modified by the package you want to remove. After the removal it asks if you want to reinstall the modified package which will restore the missing file due to the removal of the modifier. If there are multiple names in the modifier record it refers the user to check the modifier record.

Post removal:
Because slitaz-base-files was also modified by another package(busybox) still on the system it points user to slitaz-base-files modifier record. Overwriting busybox changes to slitaz-base-files by reinstalling slitaz-base-files is user decision.

I use "yes | tazpkg remove ..." when removing packages in non-interactive environment. I didn't notices from tazpkg.

Is there any option to keep files when they should be removed? If two or more packages hold some file, I think it's better to keep that file as long as at least one of the packages is still on the system.