All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Minor fix for patchlets which modify multiple projects
@ 2004-05-12 19:04 Brad Fisher
  2004-05-13  3:02 ` Patrick McHardy
  2004-05-14  8:32 ` Jozsef Kadlecsik
  0 siblings, 2 replies; 5+ messages in thread
From: Brad Fisher @ 2004-05-12 19:04 UTC (permalink / raw)
  To: netfilter-devel

While converting a match of mine to pom-ng, I noticed that
apply_patchlet doesn't properly determine the list of projects which are
affected by the patchlet.  In my case, the patch would be incompletely
applied - the kernel space part would apply, but the userspace part
would not.  The following patch (agains pom-ng cvs) should fix this.
-Brad Fisher

Index: Netfilter_POM.pm
===================================================================
RCS file: /cvspublic/patch-o-matic-ng/Netfilter_POM.pm,v
retrieving revision 1.26
diff -u -r1.26 Netfilter_POM.pm
--- Netfilter_POM.pm    11 May 2004 13:53:13 -0000      1.26
+++ Netfilter_POM.pm    12 May 2004 19:02:22 -0000
@@ -852,9 +852,11 @@
        my(@projects);

        # print Dumper($patchlet);
-       @projects = keys %{{ keys %{$patchlet->{files}},
-                            keys %{$patchlet->{patch}},
-                            keys %{$patchlet->{ladds}} }};
+       my %projects = ( );
+       foreach my $p ( keys %{$patchlet->{files}}, keys
%{$patchlet->{patch}}, keys %{$patchlet->{ladds}}) {
+               $projects{$p} = 1;
+       }
+       @projects = keys %projects;

        foreach my $proj (@projects) {
                return 0 unless ($self->apply_newfiles($patchlet, $proj,
$revert, $test, $copy)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-05-14  8:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-12 19:04 [PATCH] Minor fix for patchlets which modify multiple projects Brad Fisher
2004-05-13  3:02 ` Patrick McHardy
2004-05-13 16:09   ` Brad Fisher
2004-05-13 18:08     ` Patrick McHardy
2004-05-14  8:32 ` Jozsef Kadlecsik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.