Fix a little bug where we reference a variable before it is set

Signed-off-by: Scott Zawalski <[email protected]>

--- autotest/client/common_lib/base_packages.py 2010-06-07 12:55:55.000000000 
-0700
+++ autotest/client/common_lib/base_packages.py 2010-06-08 11:11:28.000000000 
-0700
@@ -416,12 +416,12 @@
                 logging.debug('%s could not be fetched from %s', pkg_name,
                               fetcher.url)
 
+        repo_url_list = [repo.url for repo in repositories]
         message = ('%s could not be fetched from any of the repos %s' %
                    (pkg_name, repo_url_list))
         logging.error(message)
         # if we got here then that means the package is not found
         # in any of the repositories.
-        repo_url_list = [repo.url for repo in repositories]
         raise error.PackageFetchError(message)
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to