Apparently noone objected to the wish itself.

The attached patch implements it. Could it be incorporated into the next dpkg?


-- 

Mit freundlichen Grüßen / with kind regards

Nils Rennebarth, Software Developer

--
Funkwerk IP-Appliances GmbH
Mönchhaldenstraße 28
D-70191 Stuttgart

Tel: +49 711 900300 - 0
Fax: +49 711 900300 - 90

E-Mail: [email protected]

Location: GmbH Neu-Ulm, Local Court Memmingen, HRB 13043
Managing Directors: Michael Marsanu, Steffen Herrmann

--------------------------------
The information contained in this e-mail has been carefully researched,
but the possibility of it being inapplicable in individual cases cannot
be ruled out. We therefore regret that we cannot accept responsibility
or liability of any kind whatsoever for the correctness of the
information given. Please notify us if you discover that information is
inapplicable.
Index: dpkg-1.14.25/dpkg-deb/build.c
===================================================================
--- dpkg-1.14.25.orig/dpkg-deb/build.c	2009-03-24 11:45:24.000000000 +0000
+++ dpkg-1.14.25/dpkg-deb/build.c	2009-03-24 11:47:13.000000000 +0000
@@ -69,6 +69,9 @@
 static int known_arbitrary_field(const struct arbitraryfield *field) {
   const char **known;
 
+  /* always accept fields starting with x- */
+  if (strncasecmp(field->name, "x-", 2) == 0)
+    return 1;
   for (known= arbitrary_fields; *known; known++)
     if (strcasecmp(field->name, *known) == 0)
       return 1;

Reply via email to