This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, master has been updated
via a16cd7f0eeece794bdead70ccaf17ac43d656ecb (commit)
from 2daf2ca308661547782cd819869dc8477ed08910 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a16cd7f0eeece794bdead70ccaf17ac43d656ecb
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Sat Feb 26 20:05:06 2011 +0100
Fix core updater 45-48 to remove only old core updates from cache.
-----------------------------------------------------------------------
Summary of changes:
config/rootfiles/core/45/update.sh | 9 +++++++--
config/rootfiles/core/46/update.sh | 9 +++++++--
config/rootfiles/core/47/update.sh | 9 +++++++--
config/rootfiles/core/48/update.sh | 9 +++++++--
4 files changed, 28 insertions(+), 8 deletions(-)
Difference in files:
diff --git a/config/rootfiles/core/45/update.sh b/config/rootfiles/core/45/update.sh
index 228ada4..6a76bf8 100644
--- a/config/rootfiles/core/45/update.sh
+++ b/config/rootfiles/core/45/update.sh
@@ -25,8 +25,13 @@
/usr/local/bin/backupctrl exclude >/dev/null 2>&1
#
-# Remove core updates from pakfire cache to save space...
-rm -f /var/cache/pakfire/core-upgrade-*.ipfire
+# Remove old core updates from pakfire cache to save space...
+core=45
+for (( i=1; i<=$core; i++ ))
+do
+ rm -f /var/cache/pakfire/core-upgrade-$i.ipfire
+done
+
#
#Stop services
echo Stopping Proxy
diff --git a/config/rootfiles/core/46/update.sh b/config/rootfiles/core/46/update.sh
index 6d2a75d..ccf6719 100644
--- a/config/rootfiles/core/46/update.sh
+++ b/config/rootfiles/core/46/update.sh
@@ -25,8 +25,13 @@
/usr/local/bin/backupctrl exclude >/dev/null 2>&1
#
-# Remove core updates from pakfire cache to save space...
-rm -f /var/cache/pakfire/core-upgrade-*.ipfire
+# Remove old core updates from pakfire cache to save space...
+core=46
+for (( i=1; i<=$core; i++ ))
+do
+ rm -f /var/cache/pakfire/core-upgrade-$i.ipfire
+done
+
#
#Stop services
diff --git a/config/rootfiles/core/47/update.sh b/config/rootfiles/core/47/update.sh
index ef10f55..02c315c 100644
--- a/config/rootfiles/core/47/update.sh
+++ b/config/rootfiles/core/47/update.sh
@@ -25,8 +25,13 @@
/usr/local/bin/backupctrl exclude >/dev/null 2>&1
#
-# Remove core updates from pakfire cache to save space...
-rm -f /var/cache/pakfire/core-upgrade-*.ipfire
+# Remove old core updates from pakfire cache to save space...
+core=47
+for (( i=1; i<=$core; i++ ))
+do
+ rm -f /var/cache/pakfire/core-upgrade-$i.ipfire
+done
+
#
#Stop services
diff --git a/config/rootfiles/core/48/update.sh b/config/rootfiles/core/48/update.sh
index b67200a..a55bbb3 100644
--- a/config/rootfiles/core/48/update.sh
+++ b/config/rootfiles/core/48/update.sh
@@ -25,8 +25,13 @@
/usr/local/bin/backupctrl exclude >/dev/null 2>&1
#
-# Remove core updates from pakfire cache to save space...
-rm -f /var/cache/pakfire/core-upgrade-*.ipfire
+# Remove old core updates from pakfire cache to save space...
+core=48
+for (( i=1; i<=$core; i++ ))
+do
+ rm -f /var/cache/pakfire/core-upgrade-$i.ipfire
+done
+
#
#Stop services
hooks/post-receive
--
IPFire 2.x development tree