cas.spec | 13 +++++++++----
caslib/util.py | 27 +++------------------------
2 files changed, 12 insertions(+), 28 deletions(-)
New commits:
commit 3daa6b23c62b0567c8a5ba90a71b742cf861da07
Author: adam stokes <astokes(a)fedoraproject.org>
Date: Mon Apr 26 12:19:16 2010 -0400
rm makefile from snippets dir
cleanup unused methods
diff --git a/cas.spec b/cas.spec
index abe837b..c77f6a4 100644
--- a/cas.spec
+++ b/cas.spec
@@ -2,7 +2,7 @@
Name: cas
Summary: Tool to analyze and configure core file environment
-Version: 0.16
+Version: 0.17
Release: 0%{?dist}
Source0:
https://fedorahosted.org/releases/c/a/cas/%{name}-%{version}.tar.gz
License: GPLv3+
@@ -12,9 +12,9 @@ BuildArch: noarch
Url:
http://fedorahosted.org/cas
BuildRequires: python-devel
%if 0%{?rhel}
-Requires: python-sqlite crash python-paramiko bzip2
+Requires: python-sqlite crash python-paramiko xz
%else
-Requires: crash python-paramiko bzip2
+Requires: crash python-paramiko xz
%endif
%description
@@ -31,6 +31,7 @@ make
%install
rm -rf ${RPM_BUILD_ROOT}
make DESTDIR=${RPM_BUILD_ROOT} install
+rm -rf ${RPM_BUILD_ROOT}/var/lib/cas/snippets/Makefile
%clean
rm -rf ${RPM_BUILD_ROOT}
@@ -48,7 +49,11 @@ rm -rf ${RPM_BUILD_ROOT}
%doc AUTHORS LICENSE README PKG-INFO doc/*
%changelog
-* Fri Apr 16 2020 Adam Stokes <ajs at redhat dot com> - 0.16
+* Mon Apr 26 2010 Adam Stokes <ajs at redhat dot com> - 0.17
+- Add cas.conf man page
+- Fix typo in 'smtphost' configuration parameter
+
+* Fri Apr 16 2010 Adam Stokes <ajs at redhat dot com> - 0.16
- Release bump
- Fix inconsistencies with compression/core analysis
- Installer updates
diff --git a/caslib/util.py b/caslib/util.py
index 3abbeab..5346de4 100644
--- a/caslib/util.py
+++ b/caslib/util.py
@@ -11,8 +11,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <
http://www.gnu.org/licenses/>.
-import cPickle
-import commands
import os
import re
import sys
@@ -26,7 +24,7 @@ else:
import shutil
def genprint(txt):
- sys.stdout.write("[.cas.] :: %s\n" % (txt,))
+ sys.stdout.write(":: %s\n" % (txt,))
sys.stdout.flush()
class Logging(object):
@@ -54,12 +52,12 @@ class Logging(object):
def debug(self, msg):
if self.debug_level == 'DEBUG':
- self.log.debug("[.cas.][debug] :: %s" % (msg,))
+ self.log.debug("debug :: %s" % (msg,))
def info(self, msg):
""" function to print procedure
"""
- self.log.info("[.cas.] :: %s" % (msg,))
+ self.log.info(":: %s" % (msg,))
class UtilException(Exception): pass
@@ -102,25 +100,6 @@ class UtilBase(object):
os.chmod(fn, newmode)
return
- def save(self, obj, fname):
- ''' push data to pickle
- '''
- FILE=open(fname, 'w')
- cPickle.dump(obj, FILE)
- FILE.close()
- return
-
- def load(self, fname):
- ''' grab data from pickle file
- '''
- if os.path.isfile(fname):
- FILE=open(fname, 'r')
- out=cPickle.load(FILE)
- FILE.close()
- else:
- raise UtilException("%s : Unable to locate/load file." % (fname,))
- return out
-
def getElfArch(self, debug):
""" determine machine type for ELF file
"""