summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;