SPECS: util-vserver.spec - don't be Th specific

hawk hawk at pld-linux.org
Fri Mar 28 14:39:06 CET 2008


Author: hawk                         Date: Fri Mar 28 13:39:06 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- don't be Th specific

---- Files affected:
SPECS:
   util-vserver.spec (1.178 -> 1.179) 

---- Diffs:

================================================================
Index: SPECS/util-vserver.spec
diff -u SPECS/util-vserver.spec:1.178 SPECS/util-vserver.spec:1.179
--- SPECS/util-vserver.spec:1.178	Fri Mar 28 13:15:22 2008
+++ SPECS/util-vserver.spec	Fri Mar 28 14:39:00 2008
@@ -511,7 +511,9 @@
 %define		_ftp_arch	sparc
 %endif
 
+%{__sed} -i -e 's|%%ARCH%%|%{_ftp_arch}|' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ac/poldek/repos.d/pld.conf
 %{__sed} -i -e 's|%%ARCH%%|%{_ftp_arch}|' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-th/poldek/repos.d/pld.conf
+%{__sed} -i -e 's|%%ARCH%%|%{_ftp_arch}|' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ti/poldek/repos.d/pld.conf
 
 cat <<'EOF' > $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/defaults/rpm/platform
 # first platform file entry can't contain regexps
@@ -658,12 +660,14 @@
 fi
 
 %triggerpostun -n vserver-distro-pld -- util-vserver-build < 0.30.215-1.1
-D=%{_sysconfdir}/vservers/.distributions/pld-th/poldek
+for D in ac th ti; do
+	P=%{_sysconfdir}/vservers/.distributions/pld-$D/poldek
 
-if [ -f $D/pld-source.conf.rpmsave ]; then
-	cp -f $D/repos.d/pld.conf{,.rpmnew}
-	mv -f $D/pld-source.conf.rpmsave $D/repos.d/pld.conf
-fi
+	if [ -f $P/pld-source.conf.rpmsave ]; then
+		cp -f $P/repos.d/pld.conf{,.rpmnew}
+		mv -f $P/pld-source.conf.rpmsave $P/repos.d/pld.conf
+	fi
+done
 exit 0
 
 %files
@@ -926,6 +930,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.179  2008-03-28 13:39:00  hawk
+- don't be Th specific
+
 Revision 1.178  2008-03-28 12:15:22  glen
 - i was confused, only %includedir enabled poldek is needed
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/util-vserver.spec?r1=1.178&r2=1.179&f=u



More information about the pld-cvs-commit mailing list