aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-05-12 13:38:55 +0000
committermerakor <cem@ckyln.com>2021-05-12 13:38:55 +0000
commit593904bf10f92ee3f4af7787408a05a03ff15ecb (patch)
tree38dc3d4c7d4b26c07a480cd05e510703e7b4cc67 /src
parent6c3a579ace646ccc4300e2384df61f72f66c9ed2 (diff)
parente52714d4611f0012c331e951f1ec83b91da48996 (diff)
downloadcpt-593904bf10f92ee3f4af7787408a05a03ff15ecb.tar.gz
merge maintenance branch
FossilOrigin-Name: 0e1a60744123c5e9958a20ae5980ea4f47d51bbe4d27958130d28da55837c9a8
Diffstat (limited to 'src')
-rw-r--r--src/cpt-lib.in12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cpt-lib.in b/src/cpt-lib.in
index 714e4a0..328149e 100644
--- a/src/cpt-lib.in
+++ b/src/cpt-lib.in
@@ -2050,6 +2050,12 @@ create_cache() {
eval set -- "$REST"
}
+ # The PID of the current shell process is used to isolate directories
+ # to each specific CPT instance. This allows multiple package manager
+ # instances to be run at once. Store the value in another variable so
+ # that it doesn't change beneath us.
+ pid=${CPT_PID:-$$}
+
# Create the cache directories for CPT and set the variables which point
# to them. This is seperate from temporary directories created in
# create_cache(). That's because we need these variables set on most
@@ -2069,12 +2075,6 @@ create_cache() {
# Set the location to the repository and package database.
pkg_db=var/db/cpt/installed
- # The PID of the current shell process is used to isolate directories
- # to each specific CPT instance. This allows multiple package manager
- # instances to be run at once. Store the value in another variable so
- # that it doesn't change beneath us.
- pid=${CPT_PID:-$$}
-
# Force the C locale to speed up things like 'grep' which disable unicode
# etc when this is set. We don't need unicode and a speed up is always
# welcome.