Code

debian/patches: Added tigrc-parsing-fix.dpatch.
authorSebastian Harl <sh@tokkee.org>
Tue, 3 Feb 2009 09:38:05 +0000 (10:38 +0100)
committerSebastian Harl <sh@tokkee.org>
Tue, 3 Feb 2009 09:38:55 +0000 (10:38 +0100)
Upstream patch fixing a regression in parsing ~/.tigrc.

debian/changelog
debian/patches/00list
debian/patches/tigrc-parsing-fix.dpatch [new file with mode: 0755]

index a4d4ea085317aca803c9e8c7d5890d9caa1ff37b..4cf93a9263435d0f306c40e65820c645c41716eb 100644 (file)
@@ -5,8 +5,10 @@ tig (0.13-1) experimental; urgency=low
   * debian/patches:
     - Added non-utf8-fix.dpatch - upstream patch fixing a regression in the
       handling of non-UTF-8 locales.
+    - Added tigrc-parsing-fix.dpatch - upstream patch fixing a regression in
+      parsing ~/.tigrc.
 
- -- Sebastian Harl <sh@tokkee.org>  Tue, 03 Feb 2009 10:33:22 +0100
+ -- Sebastian Harl <sh@tokkee.org>  Tue, 03 Feb 2009 10:37:15 +0100
 
 tig (0.12.1-1) experimental; urgency=low
 
index 0c853cfce9eed543e9679b776b295fa66393e76d..8857e8b193155b52dea60d9321d090118528139a 100644 (file)
@@ -1,2 +1,3 @@
 non-utf8-fix.dpatch
+tigrc-parsing-fix.dpatch
 
diff --git a/debian/patches/tigrc-parsing-fix.dpatch b/debian/patches/tigrc-parsing-fix.dpatch
new file mode 100755 (executable)
index 0000000..d784dba
--- /dev/null
@@ -0,0 +1,25 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## tigrc-parsing-fix.dpatch by Jonas Fonseca <fonseca@diku.dk>
+##
+## DP: Fix tokenizing when parsing ~/.tigrc
+## DP:
+## DP: When moving to use argv_from_string() in set_option() a regression was
+## DP: introduced causing problems with parsing of multiple spaces between
+## DP: arguments. For example:
+## DP:
+## DP:         color date              yellow  default
+## DP:
+## DP: Reported by Clifford Caoile.
+
+diff a/tig.c b/tig.c
+--- a/tig.c
++++ b/tig.c
+@@ -292,7 +292,7 @@ argv_from_string(const char *argv[SIZEOF_ARG], int *argc, char *cmd)
+               cmd[valuelen] = 0;
+               argv[(*argc)++] = chomp_string(cmd);
+-              cmd += valuelen + advance;
++              cmd = chomp_string(cmd + valuelen + advance);
+       }
+       if (*argc < SIZEOF_ARG)