[libbread-board-perl] 52/66: Containers owned by other containers aren't subcontainers
Jonas Smedegaard
js at alioth.debian.org
Sun Sep 29 21:23:39 UTC 2013
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository libbread-board-perl.
commit d601dd7494f14ea2e0ecb71be6cfe8f41e6224a5
Author: Florian Ragwitz <rafl at debian.org>
Date: Wed Aug 28 14:14:37 2013 -0400
Containers owned by other containers aren't subcontainers
---
lib/Bread/Board.pm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/Bread/Board.pm b/lib/Bread/Board.pm
index f8441ac..1ddc697 100644
--- a/lib/Bread/Board.pm
+++ b/lib/Bread/Board.pm
@@ -85,8 +85,9 @@ sub container ($;$$) {
# if we already have a root
# container, then we are a
- # subcontainer of it ...
- if (defined $CC) {
+ # subcontainer of it, unless
+ # we already have a parent
+ if (defined $CC && !$c->has_parent) {
$CC->add_sub_container($c);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libbread-board-perl.git
More information about the Pkg-perl-cvs-commits
mailing list