Here's a fix on the postinst and prerm scripts to make zope-psycopgda2
installable again:

--- zope-psycopgda2.postinst.orig       2006-11-29 10:52:12.000000000 +0800
+++ zope-psycopgda2.postinst    2006-11-29 10:51:14.000000000 +0800
@@ -19,7 +19,7 @@
 fi
 # End automatically added section
 # Automatically added by dh_pycentral
-if which pycentral >/dev/null 2>&1; then
-       pycentral pkginstall zope-psycopgda2
-fi
+#if which pycentral >/dev/null 2>&1; then
+#      pycentral pkginstall zope-psycopgda2
+#fi
 # End automatically added section

--- zope-psycopgda2.prerm.orig  2006-11-29 10:52:56.000000000 +0800
+++ zope-psycopgda2.prerm       2006-11-29 10:51:22.000000000 +0800
@@ -18,28 +18,28 @@
 fi
 # End automatically added section
 # Automatically added by dh_pycentral
-if which python >/dev/null 2>&1 && which pycentral >/dev/null 2>&1;
then
-       pycentral pkgremove zope-psycopgda2
-else
-       flist=$(tempfile)
-       find /usr/share/pycentral/zope-psycopgda2 -depth -mindepth 2 \
-         \( -name '*.py' -printf 'p %P\n' -o -printf '%y %P\n' \) \
-         > $flist 2>/dev/null || true
-       if [ -s $flist ]; then
-           for d in /usr/lib/python[0-9].[0-9]; do
-               case "$d" in */python2.1|*/python2.2) continue; esac
-               while read t n; do
-                   case "$t" in
-                       p) rm -f $d/$n $d/${n}[co];;
-                       d) rmdir $d/$n 2>/dev/null || true;;
-                       *) rm -f $d/$n
-                   esac
-               done < $flist
-           done
-       fi
-       rm -f $flist
-       dpkg -L zope-psycopgda2 \
-            | awk '/\/usr\/share\/pycentral/ {next} /\.py$/ {print $0"c
\n" $0"o"}' \
-           | xargs rm -f >&2
-fi
+#if which python >/dev/null 2>&1 && which pycentral >/dev/null 2>&1;
then
+#      pycentral pkgremove zope-psycopgda2
+#else
+#      flist=$(tempfile)
+#      find /usr/share/pycentral/zope-psycopgda2 -depth -mindepth 2 \
+#        \( -name '*.py' -printf 'p %P\n' -o -printf '%y %P\n' \) \
+#        > $flist 2>/dev/null || true
+#      if [ -s $flist ]; then
+#          for d in /usr/lib/python[0-9].[0-9]; do
+#              case "$d" in */python2.1|*/python2.2) continue; esac
+#              while read t n; do
+#                  case "$t" in
+#                      p) rm -f $d/$n $d/${n}[co];;
+#                      d) rmdir $d/$n 2>/dev/null || true;;
+#                      *) rm -f $d/$n
+#                  esac
+#              done < $flist
+#          done
+#      fi
+#      rm -f $flist
+#      dpkg -L zope-psycopgda2 \
+#           | awk '/\/usr\/share\/pycentral/ {next} /\.py$/ {print $0"c
\n" $0"o"}' \
+#          | xargs rm -f >&2
+#fi
 # End automatically added section




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to