Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > ba3a8aeddddab72e9ec6bc46a0b94a13 > files > 1

vdr-plugin-decruft-0.0.4-10mdv2009.0.src.rpm

#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_avoid-vdr-patch.dpatch by Tobias Grimm <tg@e-tobi.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Avoids the need to patch VDR.

@DPATCH@
diff -urNad vdr-plugin-decruft-0.0.4~/cruft.c vdr-plugin-decruft-0.0.4/cruft.c
--- vdr-plugin-decruft-0.0.4~/cruft.c	2005-02-20 19:34:01.000000000 +0100
+++ vdr-plugin-decruft-0.0.4/cruft.c	2006-11-11 21:57:24.000000000 +0100
@@ -535,8 +535,10 @@
         /* Not defined, so define it */
         if ( !groupSep ) {
             groupSep = new cChannel();
-            groupSep->SetName(settings->group_name,"","");
-            groupSep->SetGroupSep(true);
+            char* groupSepString;
+            asprintf(&groupSepString, ":%s", settings->group_name);
+            groupSep->Parse(groupSepString);
+            free(groupSepString);
             Channels.Add(groupSep);
         }
         /* Move the channel to the end of the group */