Fix repository addpackage and rmpackage not working
Fix a critical issue that causes patches to not be generated if file size was still the same