- Remove the socket check from the defaultdomain checker as it was

always false and thus not needed
  - Add comment explaining the reason for the code

OBS-URL: https://build.opensuse.org/package/show/Base:System/netcfg?expand=0&rev=32
This commit is contained in:
Tomáš Chvátal 2014-12-01 16:29:17 +00:00 committed by Git OBS Bridge
parent 5a80679417
commit 6cfb9c1674
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Dec 1 16:26:03 UTC 2014 - tchvatal@suse.com
- Remove the socket check from the defaultdomain checker as it was
always false and thus not needed
- Add comment explaining the reason for the code
-------------------------------------------------------------------
Mon Dec 1 16:22:22 UTC 2014 - tchvatal@suse.com

View File

@ -90,7 +90,12 @@ if [ "0$1" -ge "2" ]; then
fi
%post
test -f etc/defaultdomain.rpmnew -a ! -s etc/defaultdomain.rpmnew && rm -f etc/defaultdomain.rpmnew
# If the defaultdomain changed just prune it, user is not interested in
# 0 size file anyway
if test -f etc/defaultdomain.rpmnew; then
rm -f etc/defaultdomain.rpmnew
fi
if [ -f /etc/HOSTNAME.rpmsave -a ! -L /etc/HOSTNAME.rpmsave ]; then
cp -a /etc/HOSTNAME.rpmsave /etc/hostname
fi