Accepting request 260839 from Virtualization

1

OBS-URL: https://build.opensuse.org/request/show/260839
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hyper-v?expand=0&rev=26
This commit is contained in:
Dominique Leuenberger 2014-11-13 08:21:35 +00:00 committed by Git OBS Bridge
commit 33308dc55a
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Nov 09 04:39:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashisms in pre/post scripts
-------------------------------------------------------------------
Tue Sep 30 15:41:02 UTC 2014 - ohering@suse.de

View File

@ -247,8 +247,9 @@ ln -sfvbn ../../etc/init.d/%{hv_vss_daemon} $RPM_BUILD_ROOT${bindir}/rc%{hv_vss_
# move them to /var/lib and remove old directory, if possible.
if test -d /var/opt/hyperv
then
if mkdir -p -v -m 0755 /var/lib/hyperv && pushd /var/lib/hyperv > /dev/null
if mkdir -p -v -m 0755 /var/lib/hyperv
then
cd /var/lib/hyperv
for oldfile in /var/opt/hyperv/ifcfg-* /var/opt/hyperv/.kvp_pool_*
do
if test -e "${oldfile}"
@ -256,7 +257,7 @@ then
mv -vfb "${oldfile}" . || :
fi
done
popd > /dev/null
cd - >/dev/null
fi
rmdir -v /var/opt/hyperv || :
fi
@ -267,7 +268,7 @@ fi
%post
board_vendor=
product_name=
if pushd /sys/class/dmi/id > /dev/null 2>/dev/null
if cd /sys/class/dmi/id 2>/dev/null
then
if test -r board_vendor
then
@ -277,7 +278,7 @@ then
then
product_name="`cat product_name`"
fi
popd > /dev/null
cd - >/dev/null
fi
if test "${board_vendor}" = "Microsoft Corporation" -a "${product_name}" = "Virtual Machine"
then