Accepting request 734379 from home:lnussel:branches:Base:System

- don't call 'cd' avoid relying on $HOME beeing set during rpm installation

OBS-URL: https://build.opensuse.org/request/show/734379
OBS-URL: https://build.opensuse.org/package/show/Base:System/pcp?expand=0&rev=88
This commit is contained in:
David Disseldorp 2019-10-03 12:03:41 +00:00 committed by Git OBS Bridge
parent 3dd1fd4832
commit 8d63ccfdc5
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Oct 1 15:17:34 UTC 2019 - Ludwig Nussel <lnussel@suse.de>
- don't call 'cd' avoid relying on $HOME beeing set during rpm installation
-------------------------------------------------------------------
Wed Aug 28 10:17:39 UTC 2019 - David Disseldorp <ddiss@suse.com>

View File

@ -2890,8 +2890,7 @@ chmod 644 "$PCP_PMNS_DIR/.NeedRebuild"
%endif
%endif
cd $PCP_PMNS_DIR && ./Rebuild -s && rm -f .NeedRebuild
cd
(cd $PCP_PMNS_DIR && ./Rebuild -s && rm -f .NeedRebuild)
%post -n %{lib_pkg} -p /sbin/ldconfig
%postun -n %{lib_pkg} -p /sbin/ldconfig