]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
kernel: fix commit hash matching in need_to_install(), take 2
authorIlya Dryomov <idryomov@redhat.com>
Fri, 5 Dec 2014 17:26:30 +0000 (20:26 +0300)
committerIlya Dryomov <idryomov@redhat.com>
Thu, 11 Dec 2014 14:30:31 +0000 (17:30 +0300)
commitc72be3e523aacb47fd5a5e0164485d6273e918ce
treed5b2b0e8675231c591e39f900bed59aeea53540a
parente94701b788401f1b1e91e0fa2c395b6a69d0ec1b
kernel: fix commit hash matching in need_to_install(), take 2

Commit 10d7f9095fbb ("kernel: fix commit hash matching in
need_to_install()") switched startswith() around to accommodate
a shorter "want" version.  That however broke the opposite case: when
installing from gitbuilders "want" is actually a full 40-char hash.
Do away with starswith() and just compare substrings.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
teuthology/task/kernel.py