]> git.pld-linux.org Git - packages/tzdata.git/commitdiff
- print note that /etc/localtime is preserved if you uninstall the package auto/ti/tzdata-2012a-2
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 20 Mar 2012 19:15:03 +0000 (19:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    tzdata.spec -> 1.117

tzdata.spec

index 05d562830bbeb6c5cb5c17636abdd566e8c51019..8154e22138e3c894db6e912d583417307a17847a 100644 (file)
@@ -207,13 +207,14 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del timezone
 
        # save for postun
-       cp -f /etc/localtime /etc/localtime.rpmsave
+       cp -af /etc/localtime /etc/localtime.rpmsave
 fi
 %systemd_preun timezone.service
 
 %postun
 if [ "$1" = "0" ]; then
        if [ ! -f /etc/localtime -a -f /etc/localtime.rpmsave ]; then
+               echo >&2 "Preserving /etc/localtime"
                mv -f /etc/localtime{.rpmsave,}
        fi
 fi
This page took 0.274372 seconds and 4 git commands to generate.