Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549322 - sys-apps/portage: usage of deprecated logging.warn() function, should use logging.warning() instead
Summary: sys-apps/portage: usage of deprecated logging.warn() function, should use log...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 484436
  Show dependency tree
 
Reported: 2015-05-13 02:13 UTC by Zac Medico
Modified: 2015-05-19 19:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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