All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Brad Fisher <brad@info-link.net>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: [PATCH] Minor fix for patchlets which modify multiple projects
Date: Thu, 13 May 2004 05:02:04 +0200	[thread overview]
Message-ID: <40A2E52C.3010103@trash.net> (raw)
In-Reply-To: <40A2754C.F4AA6CEF@info-link.net>

[-- Attachment #1: Type: text/plain, Size: 583 bytes --]

Brad Fisher wrote:

>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
>

Thanks Brad, I've applied a small variation of this, because I don't know if
perl will complain about two equally named variables (@projects and %projects)
with warnings turned on.

Regards
Patrick




[-- Attachment #2: y --]
[-- Type: text/plain, Size: 775 bytes --]

Index: Netfilter_POM.pm
===================================================================
RCS file: /cvsroot/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	13 May 2004 02:57:05 -0000
@@ -852,9 +852,11 @@
 	my(@projects);
 
 	# print Dumper($patchlet);
-	@projects = keys %{{ keys %{$patchlet->{files}}, 
-			     keys %{$patchlet->{patch}},
-			     keys %{$patchlet->{ladds}} }};
+	foreach my $p ( keys %{$patchlet->{files}},
+	                keys %{$patchlet->{patch}},
+			keys %{$patchlet->{ladds}} ) {
+		push @projects, $p;
+	}
 
 	foreach my $proj (@projects) {
 		return 0 unless ($self->apply_newfiles($patchlet, $proj, $revert, $test, $copy)

  reply	other threads:[~2004-05-13  3:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-12 19:04 [PATCH] Minor fix for patchlets which modify multiple projects Brad Fisher
2004-05-13  3:02 ` Patrick McHardy [this message]
2004-05-13 16:09   ` Brad Fisher
2004-05-13 18:08     ` Patrick McHardy
2004-05-14  8:32 ` Jozsef Kadlecsik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40A2E52C.3010103@trash.net \
    --to=kaber@trash.net \
    --cc=brad@info-link.net \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.