diff options
Diffstat (limited to 'repoman/bin/torrent-creator')
-rwxr-xr-x | repoman/bin/torrent-creator | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/repoman/bin/torrent-creator b/repoman/bin/torrent-creator index 5f951813..1ede98c5 100755 --- a/repoman/bin/torrent-creator +++ b/repoman/bin/torrent-creator @@ -36,7 +36,7 @@ for IMG in *.{img,pgz,diff}; do SUMFILE="$IMG.sum" #MD5 completo de todo el fichero imagen SUMFULLFILE="$IMG.full.sum" - if [ -f "$TORRENT" ]; then + if [ -f "$TORRENT" -a -f "$SUMFULLFILE" ]; then FILESIZE="$(ls -l $IMG | awk '{print $5}')" read -e TORRFILE TORRSIZE <<<"$(ctorrent -x $TORRENT 2>/dev/null | awk '$1~/<1>/ {print $2,$3}')" [ "$(basename $IMG)" = "$TORRFILE" -a "[$FILESIZE]" = "$TORRSIZE" ] && continue |