]> git.pld-linux.org Git - packages/ppp.git/commitdiff
- dir to symlink conflict resolving on upgrade auto/th/ppp-2_4_5-7
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 2 Apr 2012 09:49:15 +0000 (09:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ppp.spec -> 1.154

ppp.spec

index 90a79af5d672766a6e7b8a54cc83fa65d1150440..8d5cf2374cc19e895ae396c970d34bd8bc649906 100644 (file)
--- a/ppp.spec
+++ b/ppp.spec
@@ -17,7 +17,7 @@ Summary(tr.UTF-8):    PPP sunucu süreci
 Summary(zh_CN.UTF-8):  PPP 配置和管理软件包.
 Name:          ppp
 Version:       2.4.5
-Release:       6
+Release:       7
 Epoch:         3
 License:       distributable
 Group:         Networking/Daemons
@@ -187,6 +187,15 @@ ln -s plugins $v
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pretrans
+# %{version} used to be directory
+if [ -d %{_libdir}/pppd/%{version} -a ! -L %{_libdir}/pppd/%{version} ]; then
+       set -e
+       rm -f %{_libdir}/pppd/plugins
+       mv %{_libdir}/pppd/{%{version},plugins}
+       ln -sn plugins %{_libdir}/pppd/%{version}
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc README.linux debian/README.debian scripts
This page took 0.150591 seconds and 4 git commands to generate.