From 682440327a714507b40cbbeb45d050240c328969 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Wed, 11 Sep 2013 19:35:43 +0400 Subject: [PATCH] #298: added comments --- app/models/build_list/package.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/models/build_list/package.rb b/app/models/build_list/package.rb index d176543f7..ba3700d11 100644 --- a/app/models/build_list/package.rb +++ b/app/models/build_list/package.rb @@ -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