diff options
Diffstat (limited to 'ulri')
-rwxr-xr-x | ulri | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -280,14 +280,8 @@ sub todo_func { if ($r =~ /(\d{14}\.\w+\.\w+\.\d+)_.*\.deps$/) { my $prefix = $1; - my @deps; - - open my $FILE, "<$todo/$f/$m/$s/$r"; - while (my $line = <$FILE>) { - chomp $line; - plog('DEBUG', "Adding dependency $line ($prefix)"); - push @deps,$line; - } + my @deps = map { chomp(); $_ } cat_("$todo/$f/$m/$s/$r"); + plog('DEBUG', "Adding dependency $_ ($prefix)") foreach @deps; $pkg_tree{$prefix}{deps} = \@deps; } |