summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-09-21 09:23:31 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-09-21 09:40:25 -0700
commitca635c229614ce3432f9a63168002c8f392385dd (patch)
treea0ccbcda7bc4a01d77843364d7e461233f6731bc
parentcc644221eac344fa127ea86766d6d631e15d53df (diff)
downloaddotfiles-ca635c229614ce3432f9a63168002c8f392385dd.tar.gz
use "eval" instead of a "no autodie" & tweak comment
-rwxr-xr-xbin/reprepro-rebuilder8
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;