Signed-off-by: Troy Dawson tdawson@redhat.com
I would replace it with: os.path.split(file_path)[1]
1 new commit added
Use os.path.split
Sounds good to me. Changed, and verified that it works as intended.
Thx. I am working on fixing unittests for this PR. So I will have to add some changes anyway :-).
Is it really possible, that some sources contain such old hashes?
Do you want to continue with "unknown" hash type instead of raising MalformedLineError exception?
MalformedLineError
The sources coming from RHEL into git.centos.org are using a sha1 hash. So, ya, we're seeing at least some of those old hashes.
I'm fine raising an exception instead of "unknown". I think at that point, we've given it our best shot at figuring it out.
Commit fc4dc688 fixes this pull-request
Pull-Request has been merged by onosek
Signed-off-by: Troy Dawson tdawson@redhat.com