Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 179598 Details for
Bug 256103
app-portage/gentoolkit - glsa-check -m: /usr/$libdir/portage/pym/portage/__init__.py:2749: DeprecationWarning: portage.config.has_key() is deprecated, use the in operator instead
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
glsa-check_no_has_key.patch
glsa-check_no_has_key.patch (text/plain), 1.40 KB, created by
michael@smith-li.com
on 2009-01-24 22:21:33 UTC
(
hide
)
Description:
glsa-check_no_has_key.patch
Filename:
MIME Type:
Creator:
michael@smith-li.com
Created:
2009-01-24 22:21:33 UTC
Size:
1.40 KB
patch
obsolete
>Index: glsa-check.1 >=================================================================== >--- glsa-check.1 (revision 540) >+++ glsa-check.1 (working copy) >@@ -12,7 +12,7 @@ > This tool is used to locally monitor and manage Gentoo Linux Security Advisories. > Please read: > .br >-http://www.gentoo.org/proj/en/portage/glsa\-integration.xml >+http://www.gentoo.org/security > .br > before reporting a bug. > .LP >Index: glsa-check >=================================================================== >--- glsa-check (revision 540) >+++ glsa-check (working copy) >@@ -328,12 +328,12 @@ > # color doesn't make any sense for mail > nocolor() > >- if glsaconfig.has_key("PORTAGE_ELOG_MAILURI"): >+ if "PORTAGE_ELOG_MAILURI" in glsaconfig: > myrecipient = glsaconfig["PORTAGE_ELOG_MAILURI"].split()[0] > else: > myrecipient = "root@localhost" > >- if glsaconfig.has_key("PORTAGE_ELOG_MAILFROM"): >+ if "PORTAGE_ELOG_MAILFROM" in glsaconfig: > myfrom = glsaconfig["PORTAGE_ELOG_MAILFROM"] > else: > myfrom = "glsa-check" >Index: glsa.py >=================================================================== >--- glsa.py (revision 540) >+++ glsa.py (working copy) >@@ -510,7 +510,7 @@ > self.packages = {} > for p in self.affected.getElementsByTagName("package"): > name = p.getAttribute("name") >- if not self.packages.has_key(name): >+ if not name in self.packages: > self.packages[name] = [] > tmp = {} > tmp["arch"] = p.getAttribute("arch")
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 256103
: 179598