SPECS (AC-branch): yum.spec - migrate yum.repos.d to yum/repos.d

glen glen at pld-linux.org
Mon Dec 17 10:11:34 CET 2007


Author: glen                         Date: Mon Dec 17 09:11:34 2007 GMT
Module: SPECS                         Tag: AC-branch
---- Log message:
- migrate yum.repos.d to yum/repos.d

---- Files affected:
SPECS:
   yum.spec (1.35.2.7 -> 1.35.2.8) 

---- Diffs:

================================================================
Index: SPECS/yum.spec
diff -u SPECS/yum.spec:1.35.2.7 SPECS/yum.spec:1.35.2.8
--- SPECS/yum.spec:1.35.2.7	Mon Dec 17 09:40:57 2007
+++ SPECS/yum.spec	Mon Dec 17 10:11:29 2007
@@ -76,6 +76,19 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pretrans
+# migrate to new dir. having two dirs is really confusing
+if [ -d %{_sysconfdir}/yum.repos.d ]; then
+	echo >&2 "Migrating %{_sysconfdir}/yum.repos.d to %{_sysconfdir}/yum/repos.d"
+	mkdir -p %{_sysconfdir}/yum/repos.d
+	for a in %{_sysconfdir}/yum.repos.d/*; do
+		if [ -f "$a" ]; then
+			mv -vf $a %{_sysconfdir}/yum/repos.d/${a##*/}
+		fi
+	done
+	rm -rf %{_sysconfdir}/yum.repos.d
+fi
+
 %post updatesd
 /sbin/chkconfig --add yum-updatesd
 %service yum-updatesd restart
@@ -119,6 +132,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.35.2.8  2007-12-17 09:11:29  glen
+- migrate yum.repos.d to yum/repos.d
+
 Revision 1.35.2.7  2007-12-17 08:40:57  glen
 - python-sqlite1 is yum-metadata-parser dep (patrys correct me)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/yum.spec?r1=1.35.2.7&r2=1.35.2.8&f=u



More information about the pld-cvs-commit mailing list