]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
kernel: get_sha1_from_pkg_name()
authorIlya Dryomov <idryomov@redhat.com>
Mon, 8 Dec 2014 14:25:11 +0000 (17:25 +0300)
committerIlya Dryomov <idryomov@redhat.com>
Thu, 11 Dec 2014 14:30:31 +0000 (17:30 +0300)
commit44d48acf5c133dfa161feffdeb64787e79e2f5a3
tree93e702b5d0c697087e3ba10468817a4f316f5ece
parentc72be3e523aacb47fd5a5e0164485d6273e918ce
kernel: get_sha1_from_pkg_name()

Move package name parsing into its own routine and make the regex more
robust:
  - match only hex chars
  - don't limit ourselves to 7 chars, match up to 40 chars
  - accept 'g' prefixed with either _ (rpm) or - (deb)

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