commit 89b9cfbdb7b0f5c75f216a33167c62f6489a8a50 Author: Arkadiusz MiĆkiewicz <ar...@maven.pl> Date: Thu Apr 27 08:08:10 2023 +0200
Rel 3; if no sysfs then don't try to do anything linux-pstore.py | 3 +++ linux-pstore.spec | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) --- diff --git a/linux-pstore.spec b/linux-pstore.spec index 21d6dc9..cd8521a 100644 --- a/linux-pstore.spec +++ b/linux-pstore.spec @@ -1,7 +1,7 @@ Summary: Save pstore logs and make room for future logs Name: linux-pstore Version: 0.4 -Release: 2 +Release: 3 License: GPL Group: Daemons Source0: %{name}.py diff --git a/linux-pstore.py b/linux-pstore.py index b219c54..7fe5e74 100755 --- a/linux-pstore.py +++ b/linux-pstore.py @@ -34,6 +34,9 @@ def mount_pstore(): print("%s: %s" % (sys.argv[0], e), file=sys.stderr) sys.exit(1) +if not os.path.isdir(pstoredir): + sys.exit(0) + tdate = datetime.datetime.now().strftime("%Y-%m-%d") tdir = os.path.join(archivedir, tdate) ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/linux-pstore.git/commitdiff/89b9cfbdb7b0f5c75f216a33167c62f6489a8a50 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit