From 3d367a4977ec1b3c363cf360a8c5cfe4542dd0ad Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 5 Jul 2018 06:41:43 +0200 Subject: core/ports: do not create .md5sum if non-existent --- core/ports/post_update_patches.patch.new | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/ports/post_update_patches.patch.new b/core/ports/post_update_patches.patch.new index a9a26df..06730b7 100644 --- a/core/ports/post_update_patches.patch.new +++ b/core/ports/post_update_patches.patch.new @@ -1,6 +1,6 @@ --- ports.in 2004-03-07 21:55:24.000000000 +0100 +++ ports.in 2016-04-27 22:41:06.030194539 +0200 -@@ -22,6 +22,57 @@ +@@ -22,6 +22,59 @@ VERSION="#VERSION#" PORTS_DIR="/usr/ports" @@ -43,7 +43,9 @@ + *.new) + echo "$(pwd): copying '$DATEI'" + cp $DATEI $(basename $DATEI .new) -+ md5sum $(basename $DATEI .new) >> .md5sum ++ if [ -f .md5sum ]; then ++ md5sum $(basename $DATEI .new) >> .md5sum ++ fi + sha256sum --tag $(basename $DATEI .new) >> .signature + ;; + *) -- cgit v1.2.3