summaryrefslogtreecommitdiffstats
path: root/repoman/bin/torrent-creator
diff options
context:
space:
mode:
Diffstat (limited to 'repoman/bin/torrent-creator')
-rwxr-xr-xrepoman/bin/torrent-creator6
1 files changed, 4 insertions, 2 deletions
diff --git a/repoman/bin/torrent-creator b/repoman/bin/torrent-creator
index 61765ed5..e890a958 100755
--- a/repoman/bin/torrent-creator
+++ b/repoman/bin/torrent-creator
@@ -25,7 +25,7 @@ pushd $OGIMG >/dev/null
# Procesar ficheros de imágenes.
trap 'echo "`date` : Proceso interrumpido" >> $LOGFILE; exit ' 1 2 3 6 9 15
-for IMG in *.{img,pgz}; do
+for IMG in *.{img,pgz,diff}; do
# Saltar al siguiente si la imagen está bloqueada o si no existe el fichero.
LOCKFILE="$IMG.lock"
if [ -f "$LOCKFILE" -o ! -f "$IMG" ]; then
@@ -46,13 +46,15 @@ for IMG in *.{img,pgz}; do
rm -f "$TORRENT" "$SUMFILE"
DATASUM=$(tail -c1M "$IMG" | md5sum -b | cut -f1 -d" ")
echo $DATASUM > "$SUMFILE"
- nice -8 ctorrent -t "$IMG" -u $TRACKERURL -s "$TORRENT" -c $DATASUM 2>/dev/null
+ nice -8 ctorrent -t "$IMG" -u $TRACKERURL -s "$TORRENT" -c $DATASUM -l 4194304 2>/dev/null
rm -f "$LOCKFILE"
if [ -f "$TORRENT" ]; then
echo "`date` : Fin creación de fichero $TORRENT" >> $LOGFILE
else
echo "`date` : ERROR en creación de fichero $TORRENT" >> $LOGFILE
fi
+ # Modificación realizada en la corrección temporal de la incidencia #535
+ break
done
popd >/dev/null