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)
committerGuido Günther <agx@sigxcpu.org>
Thu, 24 Jul 2014 18:18:30 +0000 (20:18 +0200)
commit86e1ba6bf098433f08c46585b6103e7efa2f0e48
tree3dcf9df3ced3888948e063270f49ed01a0a2e9be
parentdbfc6276c4aa50b79f1cf27cfc24badc0b18da8f
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
gbp/pkg/__init__.py
gbp/scripts/import_orig.py