summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2018-10-16 03:29:12 +0000
committerNorbert Preining <preining@logic.at>2018-10-16 03:29:12 +0000
commit9f437ce6a740b12e0822fbec90144e0793420454 (patch)
treeecf5febe8b2f4a8b3b5376b2c6f4bff53e32879c /Master
parent5c1d0e273f325f143538e0e0416fb181f9ba16b1 (diff)
make sure we don't add circular dependencies
git-svn-id: svn://tug.org/texlive/trunk@48916 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/tlpkg/TeXLive/TLPSRC.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/Master/tlpkg/TeXLive/TLPSRC.pm b/Master/tlpkg/TeXLive/TLPSRC.pm
index 66638b76739..302e72b10bb 100644
--- a/Master/tlpkg/TeXLive/TLPSRC.pm
+++ b/Master/tlpkg/TeXLive/TLPSRC.pm
@@ -297,6 +297,12 @@ sub make_tlpobj {
}
}
}
+ # we might have added the package name itself to its dependencies due
+ # to the parse_AddFormat_line. Remove it
+ @deps = (defined($tlp->depends) ? $tlp->depends : ());
+ my $tlpname = $tlp->name;
+ my @newdeps = grep { $_ ne $tlpname } @deps;
+ $tlp->depends(@newdeps);
}
my $filemax;