summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc/model/ipkg.luadoc
diff options
context:
space:
mode:
authorChristian Schoenebeck <christian.schoenebeck@gmail.com>2015-07-27 18:08:54 +0200
committerChristian Schoenebeck <christian.schoenebeck@gmail.com>2015-07-27 18:08:54 +0200
commit305528b3ccc5972e159385014f61fcea01b6ac9f (patch)
tree9098c521da0a6cfec5d19d86658a84639ca001ca /modules/luci-base/luasrc/model/ipkg.luadoc
parentec170d62821579dea84e9333a7c7561dd7d59157 (diff)
ipkg.lua: new function compare_version
* minor fix function _list() set to local * new function compare_version() lua version of opkg compare-version Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Diffstat (limited to 'modules/luci-base/luasrc/model/ipkg.luadoc')
-rw-r--r--modules/luci-base/luasrc/model/ipkg.luadoc17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/luci-base/luasrc/model/ipkg.luadoc b/modules/luci-base/luasrc/model/ipkg.luadoc
index cf0985f94a..0dbab7a68f 100644
--- a/modules/luci-base/luasrc/model/ipkg.luadoc
+++ b/modules/luci-base/luasrc/model/ipkg.luadoc
@@ -107,3 +107,20 @@ Determines the overlay root used by opkg.
@return String containing the directory path of the overlay root.
]]
+---[[
+lua version of opkg compare-versions
+
+@class function
+@name compare_versions
+@param ver1 string version 1
+@param ver2 string version 2
+@param comp string compare versions using
+ "<=" or "<" lower-equal
+ ">" or ">=" greater-equal
+ "=" equal
+ "<<" lower
+ ">>" greater
+ "~=" not equal
+@return Boolean indicating the status of the compare
+]]
+