diff options
author | Erich Eckner <git@eckner.net> | 2018-07-05 06:41:43 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-07-05 06:41:43 +0200 |
commit | 3d367a4977ec1b3c363cf360a8c5cfe4542dd0ad (patch) | |
tree | 76371a8cbebfed9244be538cca1df769be15b076 | |
parent | 3be85a70a237ef83253e8da308d8b91b029e1e6d (diff) | |
download | crux-patches-3d367a4977ec1b3c363cf360a8c5cfe4542dd0ad.tar.xz |
core/ports: do not create .md5sum if non-existent
-rw-r--r-- | core/ports/post_update_patches.patch.new | 6 |
1 files 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 + ;; + *) |