comparison bin/check-ports @ 108:ef1551e7cb16

Docu: get_immediate_remote_repo_version() is documented
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 07 Oct 2019 09:37:50 +0200
parents 05058a166e6e
children 0bd594fb56f8
comparison
equal deleted inserted replaced
107:f8642efe05a1 108:ef1551e7cb16
227 immediate_index_version="" 227 immediate_index_version=""
228 return 1 228 return 1
229 } 229 }
230 230
231 get_immediate_remote_repo_version() { 231 get_immediate_remote_repo_version() {
232 :'Ask a remote repository for the version of a package.
233
234 Args:
235 _repo: the repository name
236 _name: the name of the package
237
238 Returns:
239 0 on success and other status codes otherwise
240
241 Output (Globals):
242 immediate_remote_repo_version_${_repo}: the version of package `_name`
243 in repo `_repo`
244
245 '
232 local _repo _name _version _rv 246 local _repo _name _version _rv
233 247
234 _repo=$1 248 _repo=$1
235 _name=$2 249 _name=$2
236 250