File: 01_TextTools_tagdict.dpatch

package info (click to toggle)
egenix-mx-base 2.0.6-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,028 kB
  • ctags: 4,762
  • sloc: ansic: 14,965; python: 11,739; sh: 313; makefile: 117
file content (31 lines) | stat: -rw-r--r-- 948 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#! /bin/sh -e
## 01_TextTools_tagdict.dpatch by  <joel@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix for typo in tagdict() in TextTools.py.

if [ $# -ne 1 ]; then
    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
    exit 1
fi
case "$1" in
    -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
    -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
    *)
        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
        exit 1;;
esac

exit 0

--- /home/joel/debian/egenix-mx-base-2.0.4/mx/TextTools/TextTools.py	2003-08-09 13:24:02.000000000 +0200
+++ egenix-mx-base-2.0.4/mx/TextTools/TextTools.py	2003-08-09 13:26:40.000000000 +0200
@@ -378,7 +378,7 @@
         pfx = str(o)
         d[pfx] = text[l:r]
         if s:
-            tagdict(text,dict,pfx+'.',s)
+            tagdict(text,d,pfx+'.',s)
     return (rc,d,next)
 
 def invset(chars):