|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
onosek commented 5 years ago | ||
cqi commented 5 years ago
Yes, you are right. :) The different files cause different hash calculated. So, for the purpose, this test first writes sources directly to simulate "README.rst was uploaded and the hash is 123456". Then, write arbitrary content to README.rst and run | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
The problem is, upload is able to upload a file, which is already in
sources with different checksum. This fix prevents from uploading that
file.
Fixes #204
Signed-off-by: Chenxiong Qi cqi@redhat.com
Quite unclear to me. Won't it work event without this second 'patch'? You have 2 files - sources and README.rst. I thought, purpose is to upload 2 different files with same name and catch exception.