SPECS (DEVEL): bash-completion.spec - make relative symlinks (so they look ...

glen glen at pld-linux.org
Thu Apr 2 23:04:49 CEST 2009


Author: glen                         Date: Thu Apr  2 21:04:49 2009 GMT
Module: SPECS                         Tag: DEVEL
---- Log message:
- make relative symlinks (so they look good when browsing vserver/chroot)

---- Files affected:
SPECS:
   bash-completion.spec (1.142.2.2 -> 1.142.2.3) 

---- Diffs:

================================================================
Index: SPECS/bash-completion.spec
diff -u SPECS/bash-completion.spec:1.142.2.2 SPECS/bash-completion.spec:1.142.2.3
--- SPECS/bash-completion.spec:1.142.2.2	Thu Apr  2 20:43:35 2009
+++ SPECS/bash-completion.spec	Thu Apr  2 23:04:44 2009
@@ -7,7 +7,7 @@
 Summary(pl.UTF-8):	Programowalne uzupełnianie nazw dla basha
 Name:		bash-completion
 Version:	20081219
-Release:	0.12
+Release:	0.17
 License:	GPL
 Group:		Applications/Shells
 Source0:	ftp://distfiles.gentoo.org/pub/gentoo/distfiles/%{name}-%{version}.tar.bz2
@@ -117,12 +117,10 @@
 # Usage: bashcomp_trigger PACKAGENAME [SCRIPTNAME]
 %define bashcomp_trigger() \
 %triggerin -- %1\
-set -x;\
 if [ ! -L %{_sysconfdir}/bash_completion.d/%{?2}%{!?2:%1} ] ; then\
-	ln -fs %{_datadir}/%{name}/%{?2}%{!?2:%1} %{_sysconfdir}/bash_completion.d\
+	ln -sf ../..%{_datadir}/%{name}/%{?2}%{!?2:%1} %{_sysconfdir}/bash_completion.d\
 fi\
 %triggerun -- %1\
-set -x;\
 [ $2 -gt 0 ] || rm -f %{_sysconfdir}/bash_completion.d/%{?2}%{!?2:%1}\
 %{nil}
 
@@ -196,6 +194,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.142.2.3  2009/04/02 21:04:44  glen
+- make relative symlinks (so they look good when browsing vserver/chroot)
+
 Revision 1.142.2.2  2009/04/02 18:43:35  glen
 - handles files to ghost conversion via trigger
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/bash-completion.spec?r1=1.142.2.2&r2=1.142.2.3&f=u



More information about the pld-cvs-commit mailing list