diff --git a/netcfg.changes b/netcfg.changes index e8583b9..d545ce4 100644 --- a/netcfg.changes +++ b/netcfg.changes @@ -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 diff --git a/netcfg.spec b/netcfg.spec index 248ddf6..f50605c 100644 --- a/netcfg.spec +++ b/netcfg.spec @@ -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