refix the downloadable test URL regular expression
Recently a change was made to fix an unbalanced parenthesis in the
package name decoder regular expression. While this fixed the imbalance
it incorrectly added an additional bracketed section in that regexp
leading to a 'too many opjects in unpack'. Fix this up.
With this patch applied I am able to use the downloadable test system again.
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2334 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/common_lib/packages.py b/client/common_lib/packages.py
index cda0da1..ae83a01 100644
--- a/client/common_lib/packages.py
+++ b/client/common_lib/packages.py
@@ -651,7 +651,7 @@
used only for tests.
'''
if pkg_type == 'test':
- regex = '([^:]+://(.*)/([^/]*))$'
+ regex = '[^:]+://(.*)/([^/]*)$'
return self._get_package_name(url, regex)
else:
return ('', url)