diff options
| author | genone <genone@gentoo.org> | 2008-02-28 13:57:04 +0000 |
|---|---|---|
| committer | genone <genone@gentoo.org> | 2008-02-28 13:57:04 +0000 |
| commit | 39f8311c496a781502c476a2abd93b8f2286a77e (patch) | |
| tree | 2fc63c46031fc7b4fa55e94966f41e13265f1c53 /trunk/src/glsa-check | |
| parent | 673d924819e18478d7a1c2d1a120cf5748c82a00 (diff) | |
| download | gentoolkit-39f8311c496a781502c476a2abd93b8f2286a77e.tar.gz | |
fix imports for portage-2.2
svn path=/; revision=475
Diffstat (limited to 'trunk/src/glsa-check')
| -rw-r--r-- | trunk/src/glsa-check/glsa-check | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/trunk/src/glsa-check/glsa-check b/trunk/src/glsa-check/glsa-check index 07d1005..241d3cb 100644 --- a/trunk/src/glsa-check/glsa-check +++ b/trunk/src/glsa-check/glsa-check @@ -306,7 +306,12 @@ if mode == "test": # mail mode as requested by solar if mode == "mail": - import portage_mail, socket + try: + import portage.mail as portage_mail + except ImportError: + import portage_mail + + import socket from StringIO import StringIO from email.mime.text import MIMEText |
