summaryrefslogtreecommitdiffstats
path: root/repoman/bin
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2015-05-28 11:00:51 +0000
committerramon <ramongomez@us.es>2015-05-28 11:00:51 +0000
commitdfcc55abd5e8d8794a46835be68651b72128fb64 (patch)
tree1eb41050aa46ce66c774ebaf454eb35c286a4bdd /repoman/bin
parent12603f81e2d7da233fb60fdc641283dbbae27ef9 (diff)
Versión 1.1: Integrar últimos cambios.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4638 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'repoman/bin')
-rwxr-xr-xrepoman/bin/torrent-creator2
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