Support 2-digit major versions pkgs, add tests 52/76652/2
authorDaniel Farrell <dfarrell@redhat.com>
Thu, 4 Oct 2018 15:17:33 +0000 (11:17 -0400)
committerDaniel Farrell <dfarrell@redhat.com>
Thu, 4 Oct 2018 20:05:10 +0000 (16:05 -0400)
commitb4794292a297cc9458d650170c3ef073d3524ed0
tree443685369c979a431b5b559f6e307841eb71d852
parent9dd8df5c99fd1ea94d4f2537ec459233b04e0db5
Support 2-digit major versions pkgs, add tests

The regular expression that was extracting major version numbers from
URLs was assuming the major version number was one digit. Allow it to be
one or more digits. Add tests that fail (as-expected) without the test,
in the same way the functional tests for Neon fail.

Jira: INTPAK-204
Change-Id: I369606cc7cc7ba57baa2b80ba497ae6367602289
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
packages/lib.py
packages/test_lib.py