[pkg-wine-party] [SCM] Debian Wine packaging branch, master, updated. wine-1.1.23-1-3-g17a2cc7

Ove Kaaven ovek at arcticnet.no
Fri Jun 12 14:46:15 UTC 2009


The following commit has been merged in the master branch:
commit d895266d1f7d5c7e09e0706dd16049dbd02c0635
Author: Ove Kaaven <ovek at arcticnet.no>
Date:   Fri Jun 12 15:15:06 2009 +0200

    Fix up package names of dependencies when adding a suffix.
    For now, also add conflicts with the corresponding suffixless packages.

diff --git a/debian/prep-control.sh b/debian/prep-control.sh
index c766a3e..855d6b5 100644
--- a/debian/prep-control.sh
+++ b/debian/prep-control.sh
@@ -1,7 +1,39 @@
 #!/bin/bash
 SUFFIX="$1"
 
-sed "s,^\(Source: \|Package: \).*$,&${SUFFIX}," debian/control.in > debian/control
+sed -n "
+/^[ ]/! {
+ x
+ s/^\(Source: \|Package: \).*$/&${SUFFIX}/ 
+ /^\(Depends\|Recommends\|Suggests\|Replaces\): .*[^,]$/ {
+  s/\([\n:,|] \)\([a-z0-9_-]*wine[a-z0-9_-]*\)/\1\2${SUFFIX}/g
+  s/wine-doc${SUFFIX}/wine-doc/g
+ }
+ /^./ p
+ x
+ /^$/ p
+ h
+}
+/^[ ]/ H
+" debian/control.in > debian/control
+
+if [ -n "$SUFFIX" ]; then
+sed -i -n "
+/^Source: / h
+/^Package: / {
+ : PKG
+ x
+ /^Conflicts: /M s/Package: \([^\n]*\)${SUFFIX}\n\(\([^\n]*\n\)*\)Conflicts: \(.*\)$/Package: \1${SUFFIX}\n\2Conflicts: \4, \1/M
+ /^Conflicts: /M! s/Package: \([^\n]*\)${SUFFIX}\n\(\([^\n]*\n\)*\)Description: /Package: \1${SUFFIX}\n\2Conflicts: \1\nDescription: /M
+ /^./ p
+ x
+ $ q
+ h
+}
+/^Source: \|^Package: /! H
+$ b PKG
+" debian/control
+fi
 
 # return success
 true

-- 
Debian Wine packaging



More information about the pkg-wine-party mailing list