#298: added comments

This commit is contained in:
Vokhmin Alexey V 2013-09-11 19:35:43 +04:00
parent 7c0135edc1
commit 682440327a
1 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,11 @@ class BuildList::Package < ActiveRecord::Base
project.maintainer
end
# Comparison between versions
# @param [BuildList::Package] other
# @return [Number] -1 if +other+ is greater than, 0 if +other+ is equal to,
# and +1 if other is less than version.
def rpmvercmp(other)
RPM::C.rpmvercmp to_vre_epoch_zero, other.to_vre_epoch_zero
end