[gentoo-portage-dev] GPG support for mod_mail

2006-10-28 Thread Ali Polatel
encrypt messages with ascii armored keys , they need to be --dearmor'ed first. Thoughts? -- Ali Polatel [EMAIL PROTECTED] www.rootshell.be/~hawking gpg: 322FEACE fp: 7738 BAA0 834B 43BF 7C1E 22EA D14C 0688 322F EACE () ascii ribbon campaign - against html mail /\ --- mod_mail.py 2006-10-25

Re: [gentoo-portage-dev] GPG support for mod_mail

2006-10-28 Thread Ali Polatel
to maintain, so I'd like to see the benefit before adding that feature. Marius You're right.Right now it can only be useful for paranoids using info in ELOG_CLASSES :) Well this patch can be a starting point if gpg support is needed some day.. -- Ali Polatel [EMAIL PROTECTED

[gentoo-portage-dev] [PATCH 1/6] Replace has_key() with the in operator (portage)

2008-07-01 Thread Ali Polatel
This is a series of patches to use the in operator instead of the has_key() method for dictionaries. The has_key() method is deprecated in python2.6 and removed in python3.0. I've also added DeprecationWarning's to classes that have a has_key() method so people writing code using portage will be

[gentoo-portage-dev] [PATCH 2/6] Replace has_key() with the in operator (portage.cache)

2008-07-01 Thread Ali Polatel
--- pym/portage/cache/metadata_overlay.py |2 +- pym/portage/cache/sql_template.py |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage/cache/metadata_overlay.py b/pym/portage/cache/metadata_overlay.py index 13d1278..e25759c 100644 ---

[gentoo-portage-dev] [PATCH 4/6] Replace has_key() with the in operator (portage.elog)

2008-07-01 Thread Ali Polatel
--- pym/portage/elog/__init__.py |4 ++-- pym/portage/elog/filtering.py|2 +- pym/portage/elog/messages.py |4 ++-- pym/portage/elog/mod_mail.py |2 +- pym/portage/elog/mod_mail_summary.py |2 +- 5 files changed, 7 insertions(+), 7 deletions(-)

[gentoo-portage-dev] [PATCH 5/6] Replace has_key() with the in operator (bin)

2008-07-01 Thread Ali Polatel
--- bin/dispatch-conf |6 +++--- bin/dohtml|6 +++--- bin/glsa-check|4 ++-- bin/repoman | 14 +++--- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/bin/dispatch-conf b/bin/dispatch-conf index 28516c9..a8159cd 100755 ---

[gentoo-portage-dev] [PATCH 6/6] Add deprecation warnings to classes that have has_key() methods.

2008-07-01 Thread Ali Polatel
--- pym/portage/__init__.py |4 pym/portage/cache/mappings.py | 12 +++- pym/portage/cache/template.py |4 3 files changed, 19 insertions(+), 1 deletions(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 9e29435..1564aba 100644 ---

[gentoo-portage-dev] Re: [PATCH 6/6] Add deprecation warnings to classes that have has_key() methods.

2008-07-01 Thread Ali Polatel
These don't apply to the trunk anymore. Updated patches can be found at: http://dev.gentoo.org/~hawking/py3k/portage/ -- Regards, Ali Polatel -- gentoo-portage-dev@lists.gentoo.org mailing list

[gentoo-portage-dev] [PATCH] Bad indentation in bin/archive-conf

2008-07-05 Thread Ali Polatel
(osp.dirname(osp.realpath(__file__))), pym)) +from os import path as osp +sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), pym)) import portage import dispatch_conf -- Regards, Ali Polatel -- gentoo-portage-dev@lists.gentoo.org mailing list

[gentoo-portage-dev] [RFC/PATCH] New objects cpv, pv and version to be used instead of raw strings.

2008-07-18 Thread Ali Polatel
Hi, Attached patch adds objects cpv, pv and version to portage.versions. This is meant as a thin layer over functions vercmp(), pkgcmp(), pkgsplit() and catpkgsplit(). Using these objects instead of the mentioned functions allows us to write cleaner code and remove deprecated stuff like:

[gentoo-portage-dev] [RFC/PATCH v2] New objects cpv, pv and version to be used instead of raw strings.

2008-07-23 Thread Ali Polatel
]: + r1 = int(group1[9]) else: r1 = 0 - if match2.group(10): - r2 = int(match2.group(10)) + if group2[9]: + r2 = int(group2[9]) else: r2 = 0 vercmp_cache[mykey] = r1 - r2 -- Regards, Ali Polatel

[gentoo-portage-dev] [PATCH] fpformat is deprecated, use string interpolation

2008-08-14 Thread Ali Polatel
): -- Regards, Ali Polatel

[gentoo-portage-dev] portage-py3k status report

2008-08-15 Thread Ali Polatel
Hi, I've written a status report¹ about portage py3k conversion. It tells about the current state, what needs to be done etc. I'll be updating the page so people can learn about the current status. ¹: http://dev.gentoo.org/~hawking/portage-2to3/status.xml -- Regards, Ali Polatel

[gentoo-portage-dev] Re: portage-py3k status report

2008-08-15 Thread Ali Polatel
, Necoro -- Regards, Ali Polatel pgpE4ozCfOnGL.pgp Description: PGP signature

[gentoo-portage-dev] [PATCH] Fix warning for lib2to3/fixes/fix_map.py

2008-08-15 Thread Ali Polatel
): -- Regards, Ali Polatel

[gentoo-portage-dev] [PATCH] import cPickle as pickle

2008-09-23 Thread Ali Polatel
() -- Regards, Ali Polatel