Wed, 08 Apr 2026 22:29:45 CST | login

Information for build perl-Context-Preserve-0.03-4.oc9

ID38979
Package Nameperl-Context-Preserve
Version0.03
Release4.oc9
Epoch
DraftFalse
Sourcegit+https://gitee.com/opencloudos-stream/perl-Context-Preserve.git?.#62cb75338641a7287464d7f10bbb21311a0c5129
SummaryRun code after a subroutine call, preserving the context
DescriptionSometimes you need to call a function, get the results, act on the results, then return the result of the function. This is painful because of contexts; the original function can behave different if it's called in void, scalar, or list context. You can ignore the various cases and just pick one, but that's fragile. To do things right, you need to see which case you're being called in, and then call the function in that context. This results in 3 code paths, which is a pain to type in (and maintain). This module automates the process. You provide a code reference that is the "original function", and another code reference to run after running the original. You can modify the return value (aliased to @_) here, and do whatever else you need to do. 'wantarray' is correct inside both code references; in "after", though, the return value is ignored and the value 'wantarray' returns is related to the context that the original function was called in.
Built bybbrucezhang
State complete
Volume DEFAULT
StartedFri, 13 Jun 2025 16:31:48 CST
CompletedFri, 13 Jun 2025 16:34:13 CST
Taskbuild (dist-oc9-epol, /opencloudos-stream/perl-Context-Preserve.git:.:origin/master)
Extra{'source': {'original_url': 'git+https://gitee.com/opencloudos-stream/perl-Context-Preserve.git?.#origin/master'}}
Tags
dist-oc9-epol
dist-oc9-epol-compose
epol9-test-compose
RPMs
src
perl-Context-Preserve-0.03-4.oc9.src.rpm (info) (download)
noarch
perl-Context-Preserve-0.03-4.oc9.noarch.rpm (info) (download)
Logs
noarch
state.log
build.log
installed_pkgs.log
root.log
dnf.librepo.log
dnf.rpm.log
dnf.log
mock_output.log
hw_info.log
mock_config.log
noarch_rpmdiff.json
Changelog * Wed Jun 11 2025 bbrucezhang <bbrucezhang@tencent.com> - 0.03-4 - Rebuilt for loongarch64 * Tue Jul 02 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 0.03-3 - rebuild * Mon Jul 01 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 0.03-2 - rebuild * Thu Jun 20 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 0.03-1 - initial build