UpstreamSource: move version guessing logic to PkgPolicy
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 23 Aug 2013 10:39:19 +0000 (13:39 +0300)
committerJun Wang <junbill.wang@samsung.com>
Wed, 27 Jan 2016 10:05:29 +0000 (18:05 +0800)
commit29a74cff703402c5196760332d80c9ce8293b676
tree17e1b593810369b1f23f8a249b131db1b59e0956
parenta6b97e34129efe6ae802af2019870352a8bdc93c
UpstreamSource: move version guessing logic to PkgPolicy

PkgPolicy is more logical context, for example if guessing version from
a plain filename and not a real file.

Also, changes guess_version() to always return a tuple to simplify
checking its return value.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Conflicts:
gbp/pkg/__init__.py
tests/06_test_upstream_source.py