diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-09-21 09:23:31 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-09-21 09:40:25 -0700 |
commit | ca635c229614ce3432f9a63168002c8f392385dd (patch) | |
tree | a0ccbcda7bc4a01d77843364d7e461233f6731bc | |
parent | cc644221eac344fa127ea86766d6d631e15d53df (diff) | |
download | dotfiles-ca635c229614ce3432f9a63168002c8f392385dd.tar.gz |
use "eval" instead of a "no autodie" & tweak comment
-rwxr-xr-x | bin/reprepro-rebuilder | 8 |
1 files 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; |