forked from pool/systemd-rpm-macros
- Remove a useless test in %service_add_pre()
The test was placed where the condition '[ "$FIRST_ARG" -gt 1 ]' was always true. OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=20
This commit is contained in:
parent
5e363286ea
commit
d0cd081100
@ -77,13 +77,11 @@ if [ "$FIRST_ARG" -eq 1 ]; then \
|
|||||||
touch "/var/lib/systemd/migrated/$sysv_service" || : \
|
touch "/var/lib/systemd/migrated/$sysv_service" || : \
|
||||||
done \
|
done \
|
||||||
else \
|
else \
|
||||||
if [ "$FIRST_ARG" -gt 1 ]; then \
|
|
||||||
for service in %{?*} ; do \
|
for service in %{?*} ; do \
|
||||||
if [ ! -e "/usr/lib/systemd/system/$service" ]; then \
|
if [ ! -e "/usr/lib/systemd/system/$service" ]; then \
|
||||||
touch "/run/rpm-%{name}-update-$service-new-in-upgrade" \
|
touch "/run/rpm-%{name}-update-$service-new-in-upgrade" \
|
||||||
fi \
|
fi \
|
||||||
done \
|
done \
|
||||||
fi \
|
|
||||||
for service in %{?*} ; do \
|
for service in %{?*} ; do \
|
||||||
sysv_service="${service%%.*}" \
|
sysv_service="${service%%.*}" \
|
||||||
if [ ! -e "/var/lib/systemd/migrated/$sysv_service" ]; then \
|
if [ ! -e "/var/lib/systemd/migrated/$sysv_service" ]; then \
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 2 16:09:29 UTC 2017 - fbui@suse.com
|
||||||
|
|
||||||
|
- Remove a useless test in %service_add_pre()
|
||||||
|
|
||||||
|
The test was placed where the condition '[ "$FIRST_ARG" -gt 1 ]' was
|
||||||
|
always true.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jun 2 09:59:37 UTC 2017 - dimstar@opensuse.org
|
Fri Jun 2 09:59:37 UTC 2017 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user