From ca635c229614ce3432f9a63168002c8f392385dd Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 21 Sep 2022 09:23:31 -0700 Subject: use "eval" instead of a "no autodie" & tweak comment --- bin/reprepro-rebuilder | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bin/reprepro-rebuilder b/bin/reprepro-rebuilder index 6376677b..d2fe6255 100755 --- a/bin/reprepro-rebuilder +++ b/bin/reprepro-rebuilder @@ -215,12 +215,8 @@ sub build { $build_debs->({ desc => $_, cross => $_ }, $cross_needed{$_}->@*) for keys %cross_needed; - { - no autodie; - local $CWD = $repo; - # May fail if the .deb is already present from another build. - system "reprepro", "includedeb", $dist, $_ for <$temp/*.deb>; - } + # Command may fail if the .deb is already present from another build. + eval { reprepro("includedeb", $dist, $_) } for <$temp/*.deb>; } say "successful builds: @succeeded" if @succeeded; -- cgit v1.2.3