From 77825468f7a3e7790c855baf95107cc90ee966875329cc33d0eba1c569e6c725 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 10 Sep 2007 11:05:14 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/timezone?expand=0&rev=3 --- timezone.changes | 5 +++++ timezone.spec | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/timezone.changes b/timezone.changes index 16b17e1..06eb753 100644 --- a/timezone.changes +++ b/timezone.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Sep 8 16:12:14 CEST 2007 - pbaudis@suse.cz + +- Fix %post script to work in patch RPMs as well + ------------------------------------------------------------------- Tue Aug 21 19:19:55 CEST 2007 - pbaudis@suse.cz diff --git a/timezone.spec b/timezone.spec index 07ab165..f6b1eb7 100644 --- a/timezone.spec +++ b/timezone.spec @@ -16,7 +16,7 @@ Summary: Timezone Descriptions Group: System/Base Autoreqprov: on Version: 2007g -Release: 1 +Release: 5 URL: http://www.gnu.org/software/libc/libc.html PreReq: filesystem BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -67,7 +67,8 @@ if [ -f /etc/sysconfig/clock ]; then . /etc/sysconfig/clock if [ -n "$TIMEZONE" -a -f /etc/localtime -a -f /usr/share/zoneinfo/$TIMEZONE ]; then - cp /usr/share/zoneinfo/$TIMEZONE /etc/localtime + cp -l /usr/share/zoneinfo/$TIMEZONE /etc/localtime.$$ 2>/dev/null || cp -f /usr/share/zoneinfo/$TIMEZONE /etc/localtime.$$ + mv /etc/localtime.$$ /etc/localtime else [ ! -f /etc/localtime ] || echo "WARNING: Not updating /etc/localtime with new zone file" >&2 fi @@ -82,6 +83,8 @@ fi %{_sbindir}/zic %changelog +* Sat Sep 08 2007 - pbaudis@suse.cz +- Fix %%post script to work in patch RPMs as well * Tue Aug 21 2007 - pbaudis@suse.cz - Update to version 2007g * Wed Aug 08 2007 - pbaudis@suse.cz