Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232797 - glsa-check spit out config.has_key() deprecation message
Summary: glsa-check spit out config.has_key() deprecation message
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 170220
  Show dependency tree
 
Reported: 2008-07-23 22:22 UTC by lamusic
Modified: 2008-08-27 16:07 UTC (History)
1 user (show)

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


Attachments
this is my emerge --info in attachment (emerge.info,3.77 KB, text/plain)
2008-07-23 22:25 UTC, lamusic
Details
glsa.py.232797.patch (glsa.py.232797.patch,321 bytes, patch)
2008-07-24 18:16 UTC, Paul Varner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description lamusic 2008-07-23 22:22:41 UTC
When i run  glsa-check -t all or sudo glsa-check -t all i'm a warning with portage 2.2-rc2.

Reproducible: Always
Comment 1 lamusic 2008-07-23 22:25:36 UTC
Created attachment 161226 [details]
this is my emerge --info in attachment

this is my output error :

(shell)# sudo glsa-check -t all
/usr/lib64/portage/pym/portage/__init__.py:2770: DeprecationWarning: portage.config.has_key() is deprecated, use the in operator instead
  DeprecationWarning)

It's the same effect in root user.
Comment 2 lamusic 2008-07-24 17:57:29 UTC
The same effect with portage-2.2_rc3.
Comment 3 Paul Varner (RETIRED) gentoo-dev 2008-07-24 18:16:15 UTC
Created attachment 161305 [details, diff]
glsa.py.232797.patch

The following patch for /usr/lib/gentoolkit/pym/glsa.py appears to fix the problem. I'm pretty sure the patch is correct, but would like either genone or zmedico to confirm before I commit it to subversion.
Comment 4 lamusic 2008-07-24 18:30:02 UTC
Thanks for this patch.

Comment 5 Boney McCracker 2008-07-31 11:02:11 UTC
Applicable to all arch.
Comment 6 Paul Varner (RETIRED) gentoo-dev 2008-08-26 20:04:39 UTC
$ svn commit -m "Fix has_key() deprecation message. (Bug #232797)" ChangeLog src/glsa-check/glsa.py
Sending        ChangeLog
Sending        src/glsa-check/glsa.py
Transmitting file data ..
Committed revision 509.
Comment 7 Paul Varner (RETIRED) gentoo-dev 2008-08-27 16:07:12 UTC
Released in gentoolkit-0.2.4_rc6