diff --git a/post-build-checks.changes b/post-build-checks.changes index 2fb4c6c..1e48d5e 100644 --- a/post-build-checks.changes +++ b/post-build-checks.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Dec 7 14:58:27 CET 2009 - mmarek@suse.cz + +- do not mess with sysconfig files when installed in a live system + (no more missed appointments...). + ------------------------------------------------------------------- Thu Nov 5 15:48:37 CET 2009 - meissner@suse.de diff --git a/post-build-checks.spec b/post-build-checks.spec index 4a29b04..0d36322 100644 --- a/post-build-checks.spec +++ b/post-build-checks.spec @@ -1,7 +1,7 @@ # # spec file for package post-build-checks (Version 1.0) # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,12 +19,12 @@ Name: post-build-checks -License: GPL v2 or later +License: GPLv2+ Group: Development/Tools/Building AutoReqProv: on Summary: post checks for build after rpms have been created Version: 1.0 -Release: 67 +Release: 68 PreReq: aaa_base permissions sed Source0: %{name}-%{version}.tar.bz2 Source1: suse-buildsystem.sh @@ -68,6 +68,10 @@ done rm -rf $RPM_BUILD_ROOT %post +# do nothing when not in a build chroot +if ! test -e /.buildenv; then + exit 0 +fi sed -i -e "s@^PERMISSION_SECURITY=.*@PERMISSION_SECURITY=\"secure\"@" /etc/sysconfig/security sed -i -e "s@^TIMEZONE=.*@TIMEZONE=\"UTC\"@" /etc/sysconfig/clock if test -f /bin/uname -a ! -L /bin/uname ; then @@ -76,6 +80,9 @@ if test -f /bin/uname -a ! -L /bin/uname ; then fi %preun +if ! test -e /.buildenv; then + exit 0 +fi if test "$1" = 0 -a -f /bin/uname.bin ; then mv /bin/uname.bin /bin/uname fi