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

Bug 549322

Summary: sys-apps/portage: usage of deprecated logging.warn() function, should use logging.warning() instead
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: RepomanAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: 2.2   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 484436    

Description Zac Medico gentoo-dev 2015-05-13 02:13:21 UTC
Example warning from repoman:

/usr/lib/python-exec/python3.4/repoman:2427: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead
  logging.warn("--if-modified is enabled, but no modified packages were found!")

$ git grep -l 'logging\.warn('
bin/repoman
pym/portage/_emirrordist/Config.py
pym/portage/_emirrordist/MirrorDistTask.py
pym/repoman/utilities.py
Comment 1 Zac Medico gentoo-dev 2015-05-13 02:31:20 UTC
There's a patch in the following branch:

https://github.com/zmedico/portage/tree/bug_549322

I've posted it for review here:

https://archives.gentoo.org/gentoo-portage-dev/message/f98f249a731d0f698753fa6e802f17ec
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2015-05-19 19:55:37 UTC
Released in portage-2.2.19