Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 204125 - mod_jabber.py: Jabber notification for portage
Summary: mod_jabber.py: Jabber notification for portage
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
: 204126 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-02 22:18 UTC by Il'ya
Modified: 2008-01-11 01:29 UTC (History)
1 user (show)

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 Il'ya 2008-01-02 22:18:22 UTC
add resource (sub)variable to PORTAGE_ELOG_JABBERFROM like "jid@server:password:resource".

--- /tmp/mod_jabber.py	2008-01-02 23:19:37.000000000 +0300
+++ /usr/lib/portage/pym/elog_modules/mod_jabber.py	2008-01-02 23:21:21.667493297 +0300
@@ -13,8 +13,8 @@
 	# where jid: one or more jabber id separated by a whitespace
 	if mysettings["PORTAGE_ELOG_JABBERFROM"]:
 		if not ":" in mysettings["PORTAGE_ELOG_JABBERFROM"]:
-			raise portage_exception.PortageException("!!! Invalid syntax for PORTAGE_ELOG_JABBERFROM. Use user@host:password")
-		myfrom, mypass = mysettings["PORTAGE_ELOG_JABBERFROM"].split(":")
+			raise portage_exception.PortageException("!!! Invalid syntax for PORTAGE_ELOG_JABBERFROM. Use user@host:password:resource")
+		myfrom, mypass, myres = mysettings["PORTAGE_ELOG_JABBERFROM"].split(":")
 		mysubject = mysettings["PORTAGE_ELOG_JABBERSUBJECT"]
 		if not mysubject:
 			mysubject = mysettings["PORTAGE_ELOG_MAILSUBJECT"]
@@ -32,7 +32,7 @@
 				if connected <> 'tls':
 					raise portage_exception.PortageException("!!! Warning: unable to estabilish secure connection - TLS failed!")
 
-				auth = client.auth(myuser,mypass)
+				auth = client.auth(myuser,mypass,myres)
 				if not auth:
 					raise portage_exception.PortageException("!!! Could not authentificate to %s" %myserver)
 				if auth <> 'sasl':
Comment 1 Lars Strojny 2008-01-03 16:12:40 UTC
Feature is now included. See http://usrportage.de/archives/865-Jabber-for-portage-0.0.3.html for details. Please do not use Gentoo's bugzilla for requests like that, just drop me a mail.
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2008-01-11 01:29:46 UTC
*** Bug 204126 has been marked as a duplicate of this bug. ***