1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 20_debian_control_tags.dpatch by Damián Viano <des@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Add support for having 'Source:' and 'Package:' as tags in a
6
## DP: RFC2822 file as debian/control
9
diff -urNad geany-0.17~/tagmanager/conf.c geany-0.17/tagmanager/conf.c
10
--- geany-0.17~/tagmanager/conf.c 2009-03-30 14:49:40.000000000 -0300
11
+++ geany-0.17/tagmanager/conf.c 2009-05-29 19:41:17.000000000 -0300
13
#include "general.h" /* must always come first */
24
+ /* look for a stanza */
25
+ if (*cp != '\0' && (strncmp((const char*) cp, "Source:", 7) == 0 ||
26
+ strncmp((const char*) cp, "Package:", 8) == 0))
28
+ cp = (const unsigned char*) strchr((const char*) cp, ':') + 1;
29
+ while (isspace ((int) *cp))
31
+ vStringCopyS (name, (const char*) cp);
32
+ vStringTerminate (name);
33
+ makeSimpleTag (name, ConfKinds, K_SECTION);
34
+ vStringClear (name);
40
/* We look for any sequence of identifier characters following a white space */