[Debian-live-changes] r1934 - dists/trunk/live-helper/examples/cron

daniel at alioth.debian.org daniel at alioth.debian.org
Sun Jun 3 06:05:31 UTC 2007


Author: daniel
Date: 2007-06-03 06:05:31 +0000 (Sun, 03 Jun 2007)
New Revision: 1934

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-03 06:03:36 UTC (rev 1933)
+++ dists/trunk/live-helper/examples/cron/snapshots.sh	2007-06-03 06:05:31 UTC (rev 1934)
@@ -80,10 +80,7 @@
 		rm -rf "${TEMPDIR}"/${PACKAGE}-${VERSION}~${REVISION}
 
 		# Creating directory
-		if [ ! -d "${SERVER}" ]
-		then
-			mkdir -p "${SERVER}"
-		fi
+		mkdir -p "${SERVER}"
 
 		# Removing old packages
 		for FILE in `awk {'print $5'} "${SERVER}"/"${PACKAGE}"*.changes | grep -e ".*\.deb" -e ".*\.diff.gz" -e ".*\.dsc" -e ".*\.tar.gz" -e ".*\.udeb"`
@@ -91,8 +88,11 @@
 			rm -f "${SERVER}"/"${FILE}"
 		done
 
-		# Moving packages
-		mv "${TEMPDIR}"/${PACKAGE}* "${SERVER}"
+		# Installing new packages
+		for FILE in `awk {'print $5'} "${TEMPDIR}"/"${PACKAGE}"*.changes | grep -e ".*\.deb" -e ".*\.diff.gz" -e ".*\.dsc" -e ".*\.tar.gz" -e ".*\.udeb"`
+		do
+			mv "${TEMPDIR}"/"${FILE}" "${SERVER}"
+		done
 	else
 		# Remove sources
 		rm -rf "${TEMPDIR}"/${PACKAGE}




More information about the Debian-live-changes mailing list