1 |
On 01/26/2017 11:00 AM, Alexandru Elisei wrote: |
2 |
> If task.returncode is not os.EX_OK then returncode isn't defined when |
3 |
> trying to append the (repo, returncode) tuple to self.retvals. This will |
4 |
> raise an UnboundLocalError exception. |
5 |
> |
6 |
> This reverts the changes to the function made by commit f143e58. |
7 |
> --- |
8 |
> pym/portage/emaint/modules/sync/sync.py | 1 + |
9 |
> 1 file changed, 1 insertion(+) |
10 |
> |
11 |
> diff --git a/pym/portage/emaint/modules/sync/sync.py |
12 |
> b/pym/portage/emaint/modules/sync/sync.py |
13 |
> index b190b3c..076297a 100644 |
14 |
> --- a/pym/portage/emaint/modules/sync/sync.py |
15 |
> +++ b/pym/portage/emaint/modules/sync/sync.py |
16 |
> @@ -362,6 +362,7 @@ class SyncScheduler(AsyncScheduler): |
17 |
> # that hooks will be called in a backward-compatible manner |
18 |
> # even if all sync tasks have failed. |
19 |
> hooks_enabled = True |
20 |
> + returncode = task.returncode |
21 |
> if task.returncode == os.EX_OK: |
22 |
> returncode, message, updatecache_flg, hooks_enabled = task.result |
23 |
> if message: |
24 |
> |
25 |
|
26 |
Thanks, applied: |
27 |
|
28 |
https://gitweb.gentoo.org/proj/portage.git/commit/?id=9305bccfb29807f54a9dc514d3aea70639eb2c49 |
29 |
-- |
30 |
Thanks, |
31 |
Zac |