]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
fetch2: wget add _check_latest_version_by_dir
authorAníbal Limón <anibal.limon@linux.intel.com>
Fri, 13 Feb 2015 21:58:10 +0000 (15:58 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Feb 2015 09:12:40 +0000 (09:12 +0000)
commit5f7c5eb218a221165f59a0f4dd48d2d97f756193
tree580e9627f5c4177ba95b001b0618c036ca9eb52c
parente7284e3ad0e7dd91ed59dfbf8450ef62e89c7e54
fetch2: wget add _check_latest_version_by_dir

Add _check_latest_version_by_dir this function provides support
for scan every directory newer than current dir in order to get
latest_versionstring, example:

http://somedoamin.com/project/v2.1/
http://somedoamin.com/project/v3.0/

Change return of _vercmp from True/False to -1/0/1 to provide test
when current directory is equal to newer directory this helps to
scan the same directory to get minor versions, example:

http://somedoamin.com/project/v2.1/project-v2.1.2.tgz
http://somedoamin.com/project/v2.1/project-v2.1.6.tgz

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/fetch2/wget.py