Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 638320

Summary: sys-apps/portage-2.3.15: emaint -f binhost: AttributeError: 'binarytree' object has no attribute '_populate'
Product: Portage Development Reporter: Martin Väth <martin>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS, REGRESSION
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 637452    

Description Martin Väth 2017-11-21 13:16:10 UTC
With sys-apps/portage-2.3.15 the command

emaint -f binhost

dies with the error message:
Emaint: fix binhost             [<=>                                          ]Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.6/emaint", line 36, in <module>
    emaint_main(sys.argv[1:])
  File "/usr/lib64/python3.6/site-packages/portage/emaint/main.py", line 244, in emaint_main
    returncodes = taskmaster.run_tasks(tasks, func, status, options=task_opts)
  File "/usr/lib64/python3.6/site-packages/portage/emaint/main.py", line 139, in run_tasks
    returncode, msgs = getattr(inst, func)(**kwargs)
  File "/usr/lib64/python3.6/site-packages/portage/emaint/modules/binhost/binhost.py", line 126, in fix
    bintree._populate()
AttributeError: 'binarytree' object has no attribute '_populate'

The error does not occur with sys-apps/portage-2.3.14.
Comment 1 Larry the Git Cow gentoo-dev 2017-11-21 18:43:25 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=328bf22d6adb4df36f8ca46f5316c7a8fb065f2c

commit 328bf22d6adb4df36f8ca46f5316c7a8fb065f2c
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2017-11-21 18:42:22 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2017-11-21 18:43:17 +0000

    sys-apps/portage: drop 2.3.15 due to bug 638320
    
    Bug: https://bugs.gentoo.org/638320
    Package-Manager: Portage-2.3.15, Repoman-2.3.6

 sys-apps/portage/Manifest              |   1 -
 sys-apps/portage/portage-2.3.15.ebuild | 258 ---------------------------------
 2 files changed, 259 deletions(-)}
Comment 2 Larry the Git Cow gentoo-dev 2017-11-21 18:48:07 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=694419fc11af6cbda4944b21632acec9c641d1c3

commit 694419fc11af6cbda4944b21632acec9c641d1c3
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2017-11-21 18:37:33 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2017-11-21 18:47:29 +0000

    emaint binhost: use _populate_local instead of _populate (bug 638320)
    
    Fixes: 8267445cf2f8 ("binarytree.populate: avoid lock when possible (bug 607872)")
    Bug: https://bugs.gentoo.org/638320

 pym/portage/dbapi/bintree.py                  | 2 +-
 pym/portage/emaint/modules/binhost/binhost.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)}
Comment 3 Larry the Git Cow gentoo-dev 2017-11-21 20:10:50 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=b1d467ad9984c8fb100aeccb7de084f395a099f4

commit b1d467ad9984c8fb100aeccb7de084f395a099f4
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2017-11-21 20:05:50 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2017-11-21 20:08:13 +0000

    emaint binhost: use _populate_local return value when appropriate
    
    Since _populate_local does not write the Packages file to disk,
    its return value must be used because _load_pkgindex would return
    stale data.
    
    Fixes: 694419fc11af ("emaint binhost: use _populate_local instead of _populate (bug 638320)")
    Bug: https://bugs.gentoo.org/638320

 pym/portage/emaint/modules/binhost/binhost.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)}
Comment 4 Larry the Git Cow gentoo-dev 2017-11-21 21:22:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8fef93b33773e7b7b3467b6b2dc4eaee1f14091

commit a8fef93b33773e7b7b3467b6b2dc4eaee1f14091
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2017-11-21 21:17:18 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2017-11-21 21:22:09 +0000

    sys-apps/portage: version bump to 2.3.16
    
      #638292 - avoid unnecessary $PKGDIR/Packages index re-write
      #638320 - emaint binhost: use _populate_local instead of _populate
    
    Closes: https://bugs.gentoo.org/638320
    Package-Manager: Portage-2.3.16, Repoman-2.3.6

 sys-apps/portage/Manifest              |   5 +-
 sys-apps/portage/portage-2.3.16.ebuild | 258 +++++++++++++++++++++++++++++++++
 2 files changed, 261 insertions(+), 2 deletions(-)