cpt

Carbs Packaging Tools
git clone git://git.carbslinux.org/cpt
Log | Files | Refs | README | LICENSE

commit cbf2f674168be29a9555ae278f2076555e697743
parent 9e56712bc27261b72c2c2a9a3928137e1a3698f1
Author: Cem Keylan <cem@ckyln.com>
Date:   Sun, 20 Dec 2020 11:33:06 +0300

cpt-lib: fix a bug in pkg_clean when CPT_DEBUG was set

Because of the CPT_DEBUG check returning 1, it would skip the termination,
meaning that even the package has failed, it will create the tarball and exit
with success.

Diffstat:
MCHANGELOG.md | 9+++++++++
Mconfig.mk | 2+-
Msrc/cpt-lib | 4++--
3 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -9,6 +9,14 @@ this project _somewhat_ adheres to [Semantic Versioning]. [Semantic Versioning]: https://semver.org/spec/v2.0.0.html +5.1.1 - 2020-12-20 +-------------------------------------------------------------------------------- + +### Fixed +- Fixed an issue where the package build is continued even when it failed when + `$CPT_DEBUG` was set + + 5.1.0 - 2020-11-25 -------------------------------------------------------------------------------- @@ -29,6 +37,7 @@ this project _somewhat_ adheres to [Semantic Versioning]. - Moved option parsing to cpt-lib if `parser_definition` exists. This shouldn't affect existing scripts where `cpt-lib` is called before the `p + 5.0.0 - 2020-10-06 -------------------------------------------------------------------------------- diff --git a/config.mk b/config.mk @@ -1,5 +1,5 @@ # See LICENSE for copyright information -VERSION = 5.1.0 +VERSION = 5.1.1 # Paths PREFIX = /usr/local diff --git a/src/cpt-lib b/src/cpt-lib @@ -8,7 +8,7 @@ # Currently maintained by Cem Keylan. version() { - log "Carbs Packaging Tools" 5.1.0 + log "Carbs Packaging Tools" 5.1.1 exit 0 } @@ -1746,7 +1746,7 @@ pkg_updates(){ pkg_clean() { # Clean up on exit or error. This removes everything related # to the build. - [ "$CPT_DEBUG" != 1 ] || return + [ "$CPT_DEBUG" != 1 ] || return 0 # Block 'Ctrl+C' while cache is being cleaned. trap_set block