From dfcc55abd5e8d8794a46835be68651b72128fb64 Mon Sep 17 00:00:00 2001 From: ramon Date: Thu, 28 May 2015 11:00:51 +0000 Subject: Versión 1.1: Integrar últimos cambios. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/branches/version1.1@4638 a21b9725-9963-47de-94b9-378ad31fedc9 --- repoman/bin/torrent-creator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'repoman') 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 -- cgit v1.2.3-18-g5258