diff options
author | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2009-07-23 15:58:49 +0000 |
---|---|---|
committer | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2009-07-23 15:58:49 +0000 |
commit | 34a24cd813c61bcb8e5e5a8511b9d6048f520900 (patch) | |
tree | 01630ddf61619b842aee76b1ce561c6319477285 /src/lib | |
parent | f23e0d9a7293c1eb01cfb6a9d7f370b49724d91e (diff) | |
download | sos-34a24cd813c61bcb8e5e5a8511b9d6048f520900.tar.gz |
updates
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@617 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/lib')
-rwxr-xr-x | src/lib/sos/policyredhat.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/sos/policyredhat.py b/src/lib/sos/policyredhat.py index 26004140..b5a02203 100755 --- a/src/lib/sos/policyredhat.py +++ b/src/lib/sos/policyredhat.py @@ -229,6 +229,11 @@ class SosPolicy: def packageResults(self): + if len(self.ticketNumber): + self.reportName = self.reportName + "." + self.ticketNumber + else: + self.reportName = self.reportName + self.renameResults("sosreport-%s-%s.tar.bz2" % (self.reportName, time.strftime("%Y%m%d%H%M%S"))) tarcmd = "/bin/tar -jcf %s %s" % (self.report_file, os.path.basename(self.cInfo['dstroot'])) @@ -241,7 +246,6 @@ class SosPolicy: status, shout = commands.getstatusoutput(tarcmd) os.umask(oldmask) os.chdir(curwd) - return def cleanDstroot(self): |