SPECS: yum.spec - migrate yum.repos.d to yum/repos.d
glen
glen at pld-linux.org
Mon Dec 17 10:12:18 CET 2007
Author: glen Date: Mon Dec 17 09:12:18 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- migrate yum.repos.d to yum/repos.d
---- Files affected:
SPECS:
yum.spec (1.47 -> 1.48)
---- Diffs:
================================================================
Index: SPECS/yum.spec
diff -u SPECS/yum.spec:1.47 SPECS/yum.spec:1.48
--- SPECS/yum.spec:1.47 Mon Dec 17 09:42:53 2007
+++ SPECS/yum.spec Mon Dec 17 10:12:13 2007
@@ -73,6 +73,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
@@ -116,6 +129,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.48 2007-12-17 09:12:13 glen
+- migrate yum.repos.d to yum/repos.d
+
Revision 1.47 2007-12-17 08:42:53 glen
- AC-branch merge:
- more deps for yum-updatesd, separate package for yum-updatesd
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/yum.spec?r1=1.47&r2=1.48&f=u
More information about the pld-cvs-commit
mailing list