summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-12-22 15:57:52 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-12-22 15:57:52 (GMT)
commit482fe93065abe75624b3c213a4c2bf6ecb778c2c (patch)
tree7413f70dab18d38aba2e6f9399c59d64a8ce4a8c /abs/core
parentcd795551be430c3d398b0b80e3d9c91820aaed61 (diff)
downloadlinhes_pkgbuild-482fe93065abe75624b3c213a4c2bf6ecb778c2c.zip
linhes_pkgbuild-482fe93065abe75624b3c213a4c2bf6ecb778c2c.tar.gz
linhes_pkgbuild-482fe93065abe75624b3c213a4c2bf6ecb778c2c.tar.bz2
LinHES-system: fix be_check.py from erroring when when it can't write to the log file.
Diffstat (limited to 'abs/core')
-rwxr-xr-xabs/core/LinHES-system/PKGBUILD4
-rw-r--r--abs/core/LinHES-system/be_check.py12
2 files changed, 11 insertions, 5 deletions
diff --git a/abs/core/LinHES-system/PKGBUILD b/abs/core/LinHES-system/PKGBUILD
index e4e26d4..316ce2c 100755
--- a/abs/core/LinHES-system/PKGBUILD
+++ b/abs/core/LinHES-system/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=LinHES-system
pkgver=2
-pkgrel=131
+pkgrel=132
arch=('i686' 'x86_64')
MVDIR=$startdir/pkg/usr/LH
BINDIR=$startdir/pkg/usr/bin
@@ -118,7 +118,7 @@ md5sums=('d275db0a946087671e0c2014dac9ed22'
'116b0f62ed4e8dd6e437930deeb6e49e'
'17f678d37187be0f12d67f64e40429c6'
'bacc813b48bafcc6fe906e5969930501'
- 'd6d11865317d13f3e2a313980108736b'
+ '8b0298f70f97cc1dc2a58b9a73c64bd3'
'eb879fee9603a05d5420d4ce8ed9e450'
'6782771960c495aeb597893f37d1e5ee'
'84492954db16740f949d795b74383189'
diff --git a/abs/core/LinHES-system/be_check.py b/abs/core/LinHES-system/be_check.py
index 91c39dc..3a13c56 100644
--- a/abs/core/LinHES-system/be_check.py
+++ b/abs/core/LinHES-system/be_check.py
@@ -5,11 +5,17 @@ import sys
class Logger(object):
def __init__(self, filename="/tmp/Default.log"):
#self.terminal = sys.stdout
- self.log = open(filename, "a")
+ try:
+ self.log = open(filename, "a")
+ except:
+ pass
def write(self, message):
- #self.terminal.write(message)
- self.log.write(message)
+ try:
+ #self.terminal.write(message)
+ self.log.write(message)
+ except:
+ pass
sys.stdout = Logger("/tmp/be_check.log")