aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-12-20 09:00:28 +0000
committermerakor <cem@ckyln.com>2020-12-20 09:00:28 +0000
commit246eeaa2169dd7e0cf485b52a36f7ce64e72a80e (patch)
tree00fe841c85e40b5747b29ce7feef10336b78bd02 /src
parent85c93b694963039359d75174a23c1aaa912cdcb3 (diff)
downloadcpt-246eeaa2169dd7e0cf485b52a36f7ce64e72a80e.tar.gz
cpt-lib: fix a bug in pkg_clean when CPT_DEBUG was set5.1.1
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. FossilOrigin-Name: ce2337ddaa89f4a9928018ad325e6c7eac71ffb639ad55ad8e8bc97547f9a59b
Diffstat (limited to 'src')
-rw-r--r--src/cpt-lib4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpt-lib b/src/cpt-lib
index e071206..c75fbcf 100644
--- 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