[Debian-live-changes] r1933 - dists/trunk/live-helper/examples/cron
daniel at alioth.debian.org
daniel at alioth.debian.org
Sun Jun 3 06:03:36 UTC 2007
Author: daniel
Date: 2007-06-03 06:03:36 +0000 (Sun, 03 Jun 2007)
New Revision: 1933
Modified:
dists/trunk/live-helper/examples/cron/snapshots.sh
Log:
Modified: dists/trunk/live-helper/examples/cron/snapshots.sh
===================================================================
--- dists/trunk/live-helper/examples/cron/snapshots.sh 2007-06-02 21:07:33 UTC (rev 1932)
+++ dists/trunk/live-helper/examples/cron/snapshots.sh 2007-06-03 06:03:36 UTC (rev 1933)
@@ -86,8 +86,10 @@
fi
# Removing old packages
- rm -f "${SERVER}"/"${PACKAGE}"*
- # FIXME: parse ${SERVER}/${PACKAGE}*.changes
+ for FILE in `awk {'print $5'} "${SERVER}"/"${PACKAGE}"*.changes | grep -e ".*\.deb" -e ".*\.diff.gz" -e ".*\.dsc" -e ".*\.tar.gz" -e ".*\.udeb"`
+ do
+ rm -f "${SERVER}"/"${FILE}"
+ done
# Moving packages
mv "${TEMPDIR}"/${PACKAGE}* "${SERVER}"
More information about the Debian-live-changes
mailing list