From 5ee4ca8cde9735c2e0f11c96dc793b107f516c8c Mon Sep 17 00:00:00 2001 From: Stefan Fiedler Date: Fri, 17 Nov 2006 09:53:09 +0000 Subject: [PATCH] Stefan Fiedler: scripts/Create-PkgUpdPatch: don't set checksum to 0 if old and new version are equal [2006101119545522482] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@8009 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- scripts/Create-PkgUpdPatch | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Create-PkgUpdPatch b/scripts/Create-PkgUpdPatch index deeed527b..1e2493780 100755 --- a/scripts/Create-PkgUpdPatch +++ b/scripts/Create-PkgUpdPatch @@ -102,6 +102,7 @@ while read x ; do # this is not a typo! desc_V contains all [V] tags newline separated fi tmpfile=`mktemp` ; tmpfile2=`mktemp` + [ "$oldver" == "$newver" ] && continue echo "Upgrade Patch for $pkg ($pkgdir): $oldver -> $newver" sed "s/${oldver//./\\.}/$newver/g" < $pkgdir/$pkg.desc | \ sed "s/^\[\(D\|DOWN\|DOWNLOAD\)\] [0-9]\+/[\1] 0/" > $tmpfile