[pkg-wine-party] [SCM] Debian Wine packaging branch, master, updated. wine-0.9.61-1-4-g3d97354

Ove Kaaven ovek at arcticnet.no
Tue May 6 07:21:40 UTC 2008


The following commit has been merged in the master branch:
commit 53608c4b48c02c1bfa4f7d1469e86b72c4104b81
Author: Ove Kaaven <ovek at arcticnet.no>
Date:   Tue May 6 06:44:48 2008 +0200

    Made debian/diff-amd64.sh handle the new SHA checksums.

diff --git a/debian/diff-amd64.sh b/debian/diff-amd64.sh
index 7902530..aae6665 100644
--- a/debian/diff-amd64.sh
+++ b/debian/diff-amd64.sh
@@ -15,8 +15,36 @@ mv wine-temp.diff $DIFFNAME
 gzip -9 $DIFFNAME
 echo Updating $DSCNAME...
 MD5=$(md5sum $DIFFNAME.gz|sed -n 's,^\([^ ]*\).*$,\1,p')
+SHA1=$(sha1sum $DIFFNAME.gz|sed -n 's,^\([^ ]*\).*$,\1,p')
+SHA256=$(sha256sum $DIFFNAME.gz|sed -n 's,^\([^ ]*\).*$,\1,p')
 SIZE=$(ls -l $DIFFNAME.gz|sed -n 's,^[^ ]* [^ ]* [^ ]* [^ ]* \([^ ]*\).*$,\1,p')
-head -n -1 $DSCNAME > wine-temp.dsc
-echo " $MD5 $SIZE $DIFFNAME.gz" >> wine-temp.dsc
+CURRENT=""
+while read -r
+do
+  if [ "$REPLY" = "Files: " ]
+  then
+    CURRENT="$MD5"
+    echo "$REPLY"
+  elif [ "$REPLY" = "Checksums-Sha1: " ]
+  then
+    CURRENT="$SHA1"
+    echo "$REPLY"
+  elif [ "$REPLY" = "Checksums-Sha256: " ]
+  then
+    CURRENT="$SHA256"
+    echo "$REPLY"
+  elif [ -z "$CURRENT" ]
+  then
+    echo "$REPLY"
+  else
+    FN=`echo "$REPLY"|cut -d ' ' -f 4`
+    if [ "$FN" = "$DIFFNAME.gz" ]
+    then
+      echo " $CURRENT $SIZE $DIFFNAME.gz"
+    else
+      echo "$REPLY"
+    fi
+  fi
+done < $DSCNAME > wine-temp.dsc
 mv wine-temp.dsc $DSCNAME
 )

-- 
Debian Wine packaging



More information about the pkg-wine-party mailing list