On 04/09/2012 08:51 AM, James Antill wrote:
On Fri, 2012-04-06 at 11:26 -0600, Orion Poplawski wrote:
On 03/23/2012 01:41 PM, Matthew Miller wrote:
This happened because locally we run the update every hour, and so its
ordering in the daily rotation didn't really occur to me -- mea culpa.

How does this seem?

  Patch looks fine to me, but can you add a couple of comments about the
name (so the 0 doesn't get dropped again, in the future)?
  Also posting the patch via. git (as you did before) means we can "git
am" to import it.


Still getting used to git.  Here goes.

--
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder Office                  FAX: 303-415-9702
3380 Mitchell Lane                       or...@nwra.com
Boulder, CO 80301                   http://www.nwra.com
>From 20de963f28f4f81c1f6b25b95da98ca1e3b394d0 Mon Sep 17 00:00:00 2001
From: Orion Poplawski <or...@cora.nwra.com>
Date: Mon, 9 Apr 2012 08:58:58 -0600
Subject: [PATCH] Install yum-update.cron as 0yum-update.cron for better
 ordering

---
 yum-cron/Makefile           |    4 +++-
 yum-cron/yum-cron.sysconfig |    2 +-
 yum.spec                    |    2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/yum-cron/Makefile b/yum-cron/Makefile
index d68659a..34cb397 100644
--- a/yum-cron/Makefile
+++ b/yum-cron/Makefile
@@ -10,7 +10,9 @@ install:
 	mkdir -p $(DESTDIR)/usr/sbin
 	mkdir -p $(DESTDIR)/etc/sysconfig
 	mkdir -p $(DESTDIR)/usr/share/yum-cron
-	install -D -m 755 yum-update.cron.sh $(DESTDIR)/etc/cron.daily/yum-update.cron
+# Install yum-update.cron as 0yum-update.cron so it runs before items like
+# manpage update, mlocate, and prelink
+	install -D -m 755 yum-update.cron.sh $(DESTDIR)/etc/cron.daily/0yum-update.cron
 	install -D -m 755 yum-cleanup.cron.sh $(DESTDIR)/etc/cron.daily/yum-cleanup.cron
 	install -D -m 755 yum-cron.sysvinit $(DESTDIR)/etc/rc.d/init.d/yum-cron
 	install -D -m 755 yum-cron.sh $(DESTDIR)/usr/sbin/yum-cron
diff --git a/yum-cron/yum-cron.sysconfig b/yum-cron/yum-cron.sysconfig
index 4c8c40d..53477d3 100644
--- a/yum-cron/yum-cron.sysconfig
+++ b/yum-cron/yum-cron.sysconfig
@@ -51,7 +51,7 @@ MAILTO=root
 #SYSTEMNAME="" 
 
 # Scheduling Options (used by the default cron scripts,
-# /etc/cron.daily/yum-cleanup.cron and /etc/cron.daily/yum-update.cron)
+# /etc/cron.daily/yum-cleanup.cron and /etc/cron.daily/0yum-update.cron)
 # 
 #   Note that if you use a different cron configuration (for example,
 #   removing the default scripts and adding an entry in /etc/cron.d),
diff --git a/yum.spec b/yum.spec
index 572112a..65c62a9 100644
--- a/yum.spec
+++ b/yum.spec
@@ -277,7 +277,7 @@ exit 0
 %files cron
 %defattr(-,root,root)
 %doc COPYING
-%config(noreplace) %{_sysconfdir}/cron.daily/yum-update.cron
+%config(noreplace) %{_sysconfdir}/cron.daily/0yum-update.cron
 %config(noreplace) %{_sysconfdir}/cron.daily/yum-cleanup.cron
 %{_sysconfdir}/rc.d/init.d/yum-cron
 %{_sbindir}/yum-cron
-- 
1.7.7.6

_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to