Move Packages from Elasticsearch to the Database
Refs #7887 - Improves a test in repository_test
Commit # 690b777d62eee0ef1800ddbab5990ac7fa7a7f03 had a flawed unit test
for test/models/repository_test.rb where 2 rpm objects were being
compared with no consistent sorting mechanism. This commit fixes it be
comparing rpm object's id and sorting on that.