texlive[48916] Master/tlpkg/TeXLive/TLPSRC.pm: make sure we don't add

commits+preining at tug.org commits+preining at tug.org
Tue Oct 16 05:29:12 CEST 2018


Revision: 48916
          http://tug.org/svn/texlive?view=revision&revision=48916
Author:   preining
Date:     2018-10-16 05:29:12 +0200 (Tue, 16 Oct 2018)
Log Message:
-----------
make sure we don't add circular dependencies

Modified Paths:
--------------
    trunk/Master/tlpkg/TeXLive/TLPSRC.pm

Modified: trunk/Master/tlpkg/TeXLive/TLPSRC.pm
===================================================================
--- trunk/Master/tlpkg/TeXLive/TLPSRC.pm	2018-10-16 00:23:09 UTC (rev 48915)
+++ trunk/Master/tlpkg/TeXLive/TLPSRC.pm	2018-10-16 03:29:12 UTC (rev 48916)
@@ -297,6 +297,12 @@
         }
       }
     }
+    # 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;



More information about the tex-live-commits mailing list