/[packages]/updates/2/kernel-linus/current/SPECS/kernel-linus.spec
ViewVC logotype

Diff of /updates/2/kernel-linus/current/SPECS/kernel-linus.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 338860 by tmb, Sat Jan 5 00:42:32 2013 UTC revision 338861 by tmb, Sat Jan 5 00:48:14 2013 UTC
# Line 711  exit 0 Line 711  exit 0
711  %endif #build_devel  %endif #build_devel
712    
713    
 ### kernel-source  
 %if %build_source  
 %post -n %{kname}-source-%{buildrel}  
 for i in /lib/modules/%{buildrel}*; do  
         if [ -d $i ]; then  
                 if [ ! -L $i/build -a ! -L $i/source ]; then  
                         rm -f $i/{build,source}  
                         ln -sf /usr/src/%{kname}-%{buildrel} $i/build  
                         ln -sf /usr/src/%{kname}-%{buildrel} $i/source  
                 fi  
         fi  
 done  
   
 %preun -n %{kname}-source-%{buildrel}  
 for i in /lib/modules/%{buildrel}/{build,source}; do  
         if [ -L $i ]; then  
                 if [ "$(readlink $i)" = "/usr/src/%{kname}-%{buildrel}" ]; then  
                         rm -f $i  
                 fi  
         fi  
 done  
 exit 0  
 %endif # build_source  
   
   
714  ###  ###
715  ### file lists  ### file lists
716  ###  ###

Legend:
Removed from v.338860  
changed lines
  Added in v.338861

  ViewVC Help
Powered by ViewVC 1.1.30