diff options
author | Christian Schoenebeck <christian.schoenebeck@gmail.com> | 2015-08-01 16:17:11 +0200 |
---|---|---|
committer | Christian Schoenebeck <christian.schoenebeck@gmail.com> | 2015-08-01 16:17:11 +0200 |
commit | fa885502159fefff6e17819d30be1e792dbbdf33 (patch) | |
tree | 04606b641147f453fdb9c4c0365c2186b48cf6b3 /modules/luci-base/luasrc/model/ipkg.luadoc | |
parent | 376f0387261df8b2c3d5b0718a98740b9732aa24 (diff) | |
parent | 305528b3ccc5972e159385014f61fcea01b6ac9f (diff) |
Merge pull request #429 from chris5560/master
ipkg.lua: new function compare_version()
Diffstat (limited to 'modules/luci-base/luasrc/model/ipkg.luadoc')
-rw-r--r-- | modules/luci-base/luasrc/model/ipkg.luadoc | 17 |
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 +]] + |