MANIFEST.in | 1 + cas | 2 +- cas.conf | 3 +++ cas.spec | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-)
New commits: commit f5917130787877c266b481cd463e89eab94eda81 Author: adam stokes uzr@jak.rebo Date: Thu Nov 19 09:12:20 2009 -0500
- add contrib to doc section in spec
diff --git a/cas.spec b/cas.spec index 733e717..79e6aab 100644 --- a/cas.spec +++ b/cas.spec @@ -46,7 +46,7 @@ rm -rf ${RPM_BUILD_ROOT} %dir %{_var}/lib/cas/snippets/ %defattr(755,root,root) %config(noreplace) %{_var}/lib/cas/snippets/* -%doc AUTHORS LICENSE README PKG-INFO doc/* +%doc AUTHORS LICENSE README PKG-INFO doc/* contrib/*
%changelog * Thu Oct 15 2009 Adam Stokes <ajs at redhat dot com> - 0.15-1
commit 1c2249434e57c904d236bc46a077cd7d00c28fa0 Author: adam stokes uzr@jak.rebo Date: Thu Nov 19 09:11:32 2009 -0500
- add optional email notify parameter - include contrib in packaging
diff --git a/MANIFEST.in b/MANIFEST.in index fea437d..a121d70 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -6,3 +6,4 @@ include README include AUTHORS recursive-include doc * recursive-include snippets * +recursive-include contrib * diff --git a/cas b/cas index 97c6ada..2aa5f23 100755 --- a/cas +++ b/cas @@ -322,7 +322,7 @@ class CasApplication(object): return_results=False) # Just want to email the logfile to the submitter. crashOutFile = os.path.join(self.storagePath, "log") - if os.path.isfile(crashOutFile) and self.email: + if os.path.isfile(crashOutFile) and self.email and settings["NOTIFY"]: self.casLog.info("Crash output processed, sending email to %s" % (self.email,)) try: mailServer = smtplib.SMTP(settings["SMTPHOST"]) diff --git a/cas.conf b/cas.conf index 47c5d57..dfba27e 100644 --- a/cas.conf +++ b/cas.conf @@ -46,6 +46,9 @@ stmphost=mail.example.com # database connection info database=/var/db/cas/cas.db
+# send notifications automatically +notify=True + [maintenance] # Time in days to keep jobs and its associated files purgeLimit=90