]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
devtool: refactor return for _extract_source()
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 16 Nov 2017 03:19:19 +0000 (16:19 +1300)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 5 Dec 2017 01:38:40 +0000 (14:38 +1300)
commit23d6dd1f733e57783cb129e598d99fbe76d758fd
treea122f9d0861edb3afd488bf4935ed67df39948d2
parenta7cd9d1183be603777fc9c8c448281fe01224f7b
devtool: refactor return for _extract_source()

Use a namedtuple to return information to the caller, since I've been
expanding that information we should avoid having to change all of the
calling code each time.

Additionally, it turned out that a bunch of the callers were checking
for None being returned in the initial_rev value, but that's no longer
possible, so tidy up the calling code.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
scripts/lib/devtool/standard.py
scripts/lib/devtool/upgrade.py