From b54e542cbd3271585aed9c3abf04dd2a4f11819ba7a8a5d151ee5fdc354fac3d Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 16 Aug 2022 06:01:25 +0000 Subject: [PATCH] Accepting request 995205 from home:suse_weber:branches:Base:System - syntax correction of the preinstall scriptlet to avoid creation of file /0 (bnc#1202377) OBS-URL: https://build.opensuse.org/request/show/995205 OBS-URL: https://build.opensuse.org/package/show/Base:System/man?expand=0&rev=135 --- man.changes | 6 ++++++ man.spec | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/man.changes b/man.changes index efae6fc..173bf74 100644 --- a/man.changes +++ b/man.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Aug 15 16:48:51 UTC 2022 - + +- syntax correction of the preinstall scriptlet to avoid creation + of file /0 (bnc#1202377) + ------------------------------------------------------------------- Thu Aug 11 11:55:04 UTC 2022 - Dr. Werner Fink diff --git a/man.spec b/man.spec index 3c760e2..4116bf1 100644 --- a/man.spec +++ b/man.spec @@ -270,7 +270,7 @@ test -d var/catman/ && rm -rf var/catman/ || true %service_add_pre man-db-create.service %endif %endif -if test "$1" > 0 -a -h %{_sysconfdir}/alternatives/man +if test "$1" -gt 0 -a -h %{_sysconfdir}/alternatives/man then for ua in man apropos whatis man.1%{ext_man} apropos.1%{ext_man} whatis.1%{ext_man} do