Fix malfunction of Package.__lt__ and Package.__gt__ (RhBug:1014963)