[Pkg-debile-commits] [debile-master] 43/126: meh
Sylvestre Ledru
sylvestre at alioth.debian.org
Mon Aug 19 14:56:11 UTC 2013
This is an automated email from the git hooks/post-receive script.
sylvestre pushed a commit to branch scan-build-html
in repository debile-master.
commit 028fe0b8fb178c4fe633fea19aea9a690de9fa55
Author: Paul Tagliamonte <tag at pault.ag>
Date: Wed May 29 22:23:12 2013 -0400
meh
---
lucy/incoming.py | 4 ++++
lucy/mail.py | 13 +++++++++++++
requirements.txt | 1 +
3 files changed, 18 insertions(+)
diff --git a/lucy/incoming.py b/lucy/incoming.py
index 4dee429..39ab792 100644
--- a/lucy/incoming.py
+++ b/lucy/incoming.py
@@ -4,6 +4,7 @@ from lucy.archive import move_to_pool
from lucy.changes import parse_changes_file, ChangesFileException
from lucy.core import get_config
from lucy.utils import cd, fglob
+#from lucy.mail import send_mail
import os
@@ -57,6 +58,9 @@ def accept_source(config, changes):
obj.save()
print("ACCEPT: {source}/{version} for {owner} as {_id}".format(**obj))
+ #send_mail("ACCEPTED: {source}/{version} for {owner} as {_id}".format(
+ # **obj), who['email'], "ACCEPTED!")
+
add_jobs(obj, 'source', config, 'source')
diff --git a/lucy/mail.py b/lucy/mail.py
new file mode 100644
index 0000000..1353081
--- /dev/null
+++ b/lucy/mail.py
@@ -0,0 +1,13 @@
+from email.mime.text import MIMEText
+import smtplib
+
+
+def send_mail(subject, to, text):
+ msg = MIMEText(text)
+ msg['Subject'] = subject
+ msg['From'] = "lucy at localhost" # Meh
+ msg['To'] = to
+
+ s = smtplib.SMTP('localhost')
+ s.send_message(msg)
+ s.quit()
diff --git a/requirements.txt b/requirements.txt
index 4c6ea59..151a25f 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,5 @@
pymongo
nose
clint
+schedule
-e git://github.com/fantix/gevent.git#egg=gevent
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git
More information about the Pkg-debile-commits
mailing list